zsh终端下,配置环境变量使用~/.zshrc
source ~/.bashrc 时,出现command not found: shopt 错误
Ubuntu16.04 LTS下配置环境变量通常是 vim ~/.bashrc , 但我使用的是zsh终端,
所以应当弃用
vim ~/.bashrc
使用
vim ~/.zshrc
starkoverflow上有类似解释
https://stackoverflow.com/questions/26616003/shopt-command-not-found-in-bashrc-after-shell-updation