如何在 Mac 上设置我的默认 shell,例如钓鱼? [英] How can I set my default shell on a Mac, e.g. to Fish?

查看:50
本文介绍了如何在 Mac 上设置我的默认 shell,例如钓鱼?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不喜欢每次启动终端时都重新输入 fish.我希望 Fish 默认开启.如何在 Mac 上将 Fish shell 设置为我的默认 shell?

I do not like to retype fish every time I start terminal. I want Fish on by default. How can I set the Fish shell as my default shell on a Mac?

推荐答案

这些适用于 macOS v10.12.5 (Sierra) (16F73) 以及其他一些近期和即将推出的 macOS 版本.

These are applicable to macOS v10.12.5 (Sierra) (16F73) and probably some other recent and upcoming versions of macOS.

  1. chsh 不足以改变默认的 shell.确保在终端打开时按 Command + , 并将外壳打开方式"选项更改为默认登录外壳".

  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 上设置我的默认 shell,例如钓鱼?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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