如何在Mac上设置默认外壳程序? [英] How to set my default shell on Mac?
问题描述
我不喜欢每次启动终端时都重新键入鱼.默认情况下,我要打开fish
.如何在Mac上将鱼壳设置为默认壳?
I do not like to retype fish every time I start terminal. I want fish
on by default. How can I set fish shell as my default shell on a Mac?
推荐答案
这些适用于MacOS Sierra 10.12.5(16F73)以及其他一些即将发布的MacOS版本.
These are applicable to MacOS Sierra 10.12.5 (16F73) and probably some other recent and upcoming versions of MacOS.
-
chsh
不足以更改默认外壳程序.确保在打开终端时按 Command + ,,然后将"Shells with with"选项更改为"Default login shell".
chsh
is not enough to change the default shell. Make sure you press Command+, while your terminal is open and change the 'Shells open with' option to 'Default login shell.'
对于bash,请确保执行echo $BASH_VERSION
以确认您正在运行预期的bash版本. bash --version
没有为您提供正确的信息.
In case of bash, make sure that you execute echo $BASH_VERSION
to confirm you are running the intended version of bash. bash --version
does not give you correct information.
这篇关于如何在Mac上设置默认外壳程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!