summaryrefslogtreecommitdiff
path: root/xmake/core/base/tty.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/tty.lua')
-rw-r--r--xmake/core/base/tty.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/base/tty.lua b/xmake/core/base/tty.lua
index 8fa00d494..f6fa0b622 100644
--- a/xmake/core/base/tty.lua
+++ b/xmake/core/base/tty.lua
@@ -175,6 +175,13 @@ function tty.shell()
end
end
end
+ if not shell then
+ if os.getenv("BASH_VERSION") then
+ shell = "bash"
+ elseif os.getenv("FISH_VERSION") then
+ shell = "fish"
+ end
+ end
end
tty._SHELL = shell or "sh"
end