在ubuntu环境中,修改过~/.bashrc
后,运行命令source ~/.bashrc
出现类似错误:
/home/xxx/.bashrc:..:command not found: shopt
/home/xxx/.bashrc:..:command not found: shopt
/home/xxx/.bashrc:..:command not found: shopt
/usr/share/bash-completion/bash_completion:..: parse error near ']]'
改成运行source ~/.zshrc
就可以了。在bash终端中使用~/.bashrc
,在zsh终端中使用~/.zshrc
。