如何在Mac上设置默认外壳程序? [英] How to set my default shell on Mac?

查看:108
本文介绍了如何在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.

  1. chsh不足以更改默认外壳程序.确保在打开终端时按 Command + ,然后将"Shells with with"选项更改为"Default login shell".

  1. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆