Mac 终端提示:The default interactive shell is now zsh.
生活随笔
收集整理的這篇文章主要介紹了
Mac 终端提示:The default interactive shell is now zsh.
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
問題:使用bash出現(xiàn)
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 Catalina,新系統(tǒng)的shell已經(jīng)更換為zsh。
解決辦法:
-輸入vim ./.bash_profile 回車,然后就打開了bash_profile文件。
-點(diǎn)擊i建進(jìn)入編輯狀態(tài),添加 export BASH_SILENCE_DEPRECATION_WARNING=1,這樣一個(gè)環(huán)境變量就添加上了。
-點(diǎn)擊esc退出編輯狀態(tài),輸入:wq回車保存退出。
-輸入source ~/.bash_profile ,讓配置文件在修改后立即生效。
總結(jié)
以上是生活随笔為你收集整理的Mac 终端提示:The default interactive shell is now zsh.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android官方开发文档Trainin
- 下一篇: anaconda配置虚拟环境