我最近将我的默认 shell 更改为 fish(来自 bash)。每当我用 bash 打开控制台时,我都将 tmux 设置为自动运行,但我不确定如何用鱼设置它。
我试过放
[[ $TERM != "screen" ]] && exec tmux
Run Code Online (Sandbox Code Playgroud)
在fish.config 中,但这不起作用。如何将 tmux 设置为在 fish 中自动运行?
改变
[[ $TERM != "screen" ]] && exec tmux
Run Code Online (Sandbox Code Playgroud)
到
test $TERM != "screen"; and exec tmux
Run Code Online (Sandbox Code Playgroud)
http://fishshell.com/docs/2.1/commands.html#test
http://fishshell.com/docs/2.1/commands.html#and