/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的._bash_profile