bash切换到zsh报错/home/tree/.bashrc:16: command not found: shopt解决方法

/home/tree/.bashrc:16: command not found: shopt
/home/tree/.bashrc:24: command not found: shopt
/home/tree/.bashrc:111: command not found: shopt
/usr/share/bash-completion/bash_completion:45: command not found: shopt
/usr/share/bash-completion/bash_completion:53: command not found: complete
/usr/share/bash-completion/bash_completion:56: command not found: complete
/usr/share/bash-completion/bash_completion:59: command not found: complete
/usr/share/bash-completion/bash_completion:62: command not found: complete
/usr/share/bash-completion/bash_completion:65: command not found: complete
/usr/share/bash-completion/bash_completion:68: command not found: complete
/usr/share/bash-completion/bash_completion:71: command not found: complete
/usr/share/bash-completion/bash_completion:74: command not found: complete
/usr/share/bash-completion/bash_completion:77: command not found: complete
/usr/share/bash-completion/bash_completion:80: command not found: complete
/usr/share/bash-completion/bash_completion:1461: parse error near `|'

命令行如下

复制红框的路径到~/.zshrc 粘贴如图

最后

source  ~/.zshr

猜你喜欢

转载自blog.csdn.net/supertree_l/article/details/88299206