Kubectl tips and tricks

I figured out long time ago, this was because the default bash by osx. The solution: upgrade bash
brew install bash
[ -e "$(which bash)" ] && [ "$(grep $(which bash) /etc/shells)" == "" ] && (echo "$(which bash)" | sudo tee -a /etc/shells) && chsh -s "$(which bash)"

1 Like