在 OS X 上,如何将我的 shell 从鱼改回 bash?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 
原文地址: http://stackoverflow.com/questions/13386292/
Warning: these are provided under cc-by-sa 4.0 license.  You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
On OS X, how do I change my shell from fish back to bash?
提问by Doug Smith
I'm kinda preferring bash lately to fish, and I'm wondering if I can change it back. I tried this command: chsh -s /bin/bashbut closing the terminal and reopening it does not restore it to bash, but it's still fish.
我最近有点喜欢 bash 而不是钓鱼,我想知道我是否可以把它改回来。我试过这个命令:chsh -s /bin/bash但是关闭终端并重新打开它并没有将它恢复到 bash,但它仍然是鱼。
In fact, how do I remove fish?
事实上,我如何去除鱼?
回答by Brian Campbell
Go to System Preferences, Users & Groups, click the lock to make changes, right click (or Control click) on your username, choose "Advanced Options" and you should have a field to change your shell. Change it there, reboot, and your new shell should take effect.
转到系统偏好设置、用户和组,单击锁进行更改,右键单击(或 Control 单击)您的用户名,选择“高级选项”,您应该有一个字段来更改您的外壳。在那里更改它,重新启动,您的新 shell 应该会生效。
回答by nicolas.f.g
Very easy:
好简单:
- from FISH to BASH :
 In your Fish terminal, typebash --loginto switch to Bash
- from BASH to FISH :
 In your Bash terminal, typefishto switch to Fish
- 从 FISH 到 BASH :
 在您的 Fish 终端中,键入bash --login以切换到 Bash
- 从 BASH 到 FISH :
 在您的 Bash 终端中,键入fish以切换到 Fish


