On OS X, how do I change my shell from fish back to bash?

做~自己de王妃 提交于 2019-12-03 04:14:24

问题


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/bash but closing the terminal and reopening it does not restore it to bash, but it's still fish.

In fact, how do I remove fish?


回答1:


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.




回答2:


Very easy:

  • from FISH to BASH :
    In your Fish terminal, type bash --login to switch to Bash
  • from BASH to FISH :
    In your Bash terminal, type fish to switch to Fish



回答3:


Update 10.13.1:

Right-click (ctrl+click) on the username in the left pane, not the image.



来源:https://stackoverflow.com/questions/13386292/on-os-x-how-do-i-change-my-shell-from-fish-back-to-bash

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!