解決 /usr/local/etc/bash_completion:59: command not found: shopt

Situation

打開 shell 出現以下 error:

/usr/local/etc/bash_completion:59: command not found: shopt
/usr/local/etc/bash_completion:1192: command not found: shopt
/usr/local/etc/bash_completion:1420: command not found: shopt
/usr/local/etc/bash_completion.d/minikube:type:2663: bad option: -t
/usr/local/etc/bash_completion.d/ssh:194: command not found: shopt
/usr/local/etc/bash_completion.d/ssh:247: command not found: shopt
/usr/local/etc/bash_completion.d/xrandr:17: parse error near `)'

閱讀更多解決 /usr/local/etc/bash_completion:59: command not found: shopt