今天升級了macOS Catalina
1:在使用命令臺時出現了:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s?/bin/zsh`.
For?more?details, please visit https://support.apple.com/kb/HT208050.
2:原我使用的是bash風格牢屋,提示語告知現在新系統(tǒng)的shell已經更換為zsh涡拘,請用此 `chsh -s /bin/zsh` 命令切換驶赏。
3:查看系統(tǒng)支持的shell風格命令:
1cat?/etc/shells
4:我系統(tǒng)支持的shell:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s?/bin/zsh`.
For?more?details, please visit https://support.apple.com/kb/HT208050.
Macintosh:~ zhengya$??cat?/etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
Macintosh:~ zhengya$?
5:解決辦法
(1) 不使用bash痰驱,切換zsh,`chsh -s /bin/zsh`命令切換即可晕翠。
(2) 繼續(xù)使用bash喷舀,但又不想出現提示語砍濒,則在
1vim ~/.bash_profile
.bash_profile文件最下方加上
# macOS Catalina
export?BASH_SILENCE_DEPRECATION_WARNING=1
:wq 保存退出重新打開命令行警示語消失。