macOS|macOS Catalina new Shell,解决 The default interactive shell is now zsh
今天升级了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.
【macOS|macOS Catalina new Shell,解决 The default interactive shell is now zsh】2:原我使用的是bash风格,提示语告知现在新系统的shell已经更换为zsh,请用此 `chsh -s /bin/zsh` 命令切换。
3:查看系统支持的shell风格命令:
1cat /etc/shells
4:我系统支持的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) 继续使用bash,但又不想出现提示语,则在
1vim ~/.bash_profile
.bash_profile文件最下方加上
# macOS Catalina
export BASH_SILENCE_DEPRECATION_WARNING=1
:wq 保存退出重新打开命令行警示语消失。
推荐阅读
- MagicaVoxel-0.99.6-macos-10.7|MagicaVoxel-0.99.6-macos-10.7 网盘下载
- new|new Date两个实用小方法,即获取最近几天及某段时间内的所有天数
- macOS系统上,安装包安装权限不足或验证不过问题
- 流利说懂你英语笔记要点句型·核心课·Level|流利说懂你英语笔记要点句型·核心课·Level 3·Unit 3·Part 3·Good News & Bad News
- cycript|cycript & 命令权限
- macOS|macOS SwiftUI 组件之 实用下拉菜单 (教程含源码)
- Fourth|Fourth season fifth episode,Chandler likes Joey‘s new girlfriend???
- 什么是实例
- macOS|macOS SwiftUI教程之打开文件并获取本地文件的类型标识符UTType(教程含源码)
- 基本包装类型