Screen 启动时无法使用 Zsh 作为登录 shell
我将以下内容添加到我的 .zshrc 中,
if [[ $STY = '' ]] then screen -xR; fi
当我现在启动终端时,我会得到 Bash,尽管我在 Terminal > 处有 /bin/zsh Mac 中的设置。
我需要更改哪个变量才能使 Zsh 成为 Screen 中的登录 shell?
I put the following to my .zshrc
if [[ $STY = '' ]] then screen -xR; fi
I get Bash when I start terminal now, although I have /bin/zsh at Terminal > Settings in Mac.
Which variable do I need to change to make Zsh my login shell in Screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
更改 shell(例如更改为 Zsh)的快速方法是运行以下代码
A fast way to change your shell, for example to Zsh, is to run the following code
/bin/zsh
。/bin/zsh
.如果环境和其他东西不起作用,那么您可以简单地将其作为 screen 的参数:screen -xR zsh ,screen 将运行 zsh 而不是其他东西(bash)。
If environment and other things aren't working, then you can simply give it as an argument to screen:
screen -xR zsh
and screen will run zsh instead of something else (bash).应该可以工作,即设置环境变量
$SHELL
should work, i. e. set the environment variabe
$SHELL