在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 03:47:29  来源:igfitidea点击:

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

macosbashterminalfish

提问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, type bash --loginto switch to Bash
  • from BASH to FISH :
    In your Bash terminal, type fishto switch to Fish
  • 从 FISH 到 BASH :
    在您的 Fish 终端中,键入bash --login以切换到 Bash
  • 从 BASH 到 FISH :
    在您的 Bash 终端中,键入fish以切换到 Fish

回答by danielhadar

Update 10.13.1:

更新 10.13.1:

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

右键单击(ctrl+单击)左窗格中的用户名,而不是图像。

enter image description here

在此处输入图片说明