summaryrefslogtreecommitdiff
path: root/xmake/core/base/tty.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-03-03 22:52:29 +0800
committerruki <[email protected]>2023-03-03 22:52:29 +0800
commitc464a7c482ced95d40452a3ca4eee66220567d44 (patch)
treed74c1d3c54650e9a01fd397e307574c6758b9895 /xmake/core/base/tty.lua
parent317910e7d4c19fc5aa461edea90cda0f2b16bc25 (diff)
install to fish profile
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