Mac-关于升级macOS Catalina后,终端试用问题

xcrun: error

在终端输入 git clone *****后,提示:html

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing*****,解决方法,直接在终端输入如下便可:git

xcode-select --install

shell 脚本问题

若是每次打开终端都提示:shell

The default interactive shell is now zsh.vim

To update your account to use zsh, please run `chsh -s /bin/zsh`.xcode

缘由是本来使用的是bash风格,提示语告知如今新系统的shell已经更换为zsh,请用此 `chsh -s /bin/zsh` 命令切换。bash

解决办法:post

(1) 不使用bash,切换zsh,`chsh -s /bin/zsh`命令切换便可。spa

(2) 继续使用bash,但又不想出现提示语,则打开文件:命令行

vim ~/.bash_profile

.bash_profile文件最下方加上:code

# macOS Catalina
export BASH_SILENCE_DEPRECATION_WARNING=1

而后ESC  :wq 保存退出,从新打开命令行警示语消失。

 

相关引用:https://www.cnblogs.com/KuJo/p/11643142.html

相关文章
相关标签/搜索