A simple solution to use shopt in zsh.