/etc/bashrc:37: command not found: shopt


在zsh中配置jdk,使用source .bash_profile出现错误

➜  ~  source .bash_profile
/etc/bashrc:37: command not found: shopt
/etc/bashrc:fc:38: event not found: -a
/etc/bashrc:40: command not found: shopt
/etc/bashrc:51: command not found: shopt

zsh的环境变量需要配置在~/.zshrc中,不再是bash的.bashprofile



上篇: ifstat查看网速 下篇: nginx限制访问速度