在运行了source ~/.bashrc
之后就报以下错误,且终端路径成了乱码
/home/lj/.bashrc:16: command not found: shopt
/home/lj/.bashrc:24: command not found: shopt
/home/lj/.bashrc:111: command not found: shopt
/usr/share/bash-completion/bash_completion:45: command not found: shopt
/usr/share/bash-completion/bash_completion:1512: parse error near `|'
\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$
解决办法:运行source ~/.zshrc
\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$ source ~/.zshrc [0]
lj@ubuntu ~ %