在 OS X 上从 zsh 切换到 bash,然后再返回? [英] Switching from zsh to bash on OS X, and back again?
本文介绍了在 OS X 上从 zsh 切换到 bash,然后再返回?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在学习使用 Rails 进行开发,并发现了 zsh
的强大功能.但是,对于我的其他一些任务,我希望使用普通的 bash
.
I'm learning to develop in Rails, and have discovered the power of zsh
. However, for some of my other tasks, I wish to use normal bash
.
虽然它们是一样的,但我只是觉得在某些情况下 bash
的布局很舒服.
Although they are the same, I just feel comfortable with the lay out of bash
in some situations.
如何来回切换,或打开和关闭zsh
?
How do I switch back and forth, or turn zsh
on and off?
推荐答案
你可以使用 exec
用新的 shell 替换你当前的 shell:
You can just use exec
to replace your current shell with a new shell:
切换到bash
:
exec bash
切换到zsh
:
exec zsh
这不会影响新的终端窗口或任何东西,但很方便.
This won't affect new terminal windows or anything, but it's convenient.
这篇关于在 OS X 上从 zsh 切换到 bash,然后再返回?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文