I'm not sure because I use bash only. I wish someone zsh user (maybe including @mikemcquaid ) suggests a concrete patch.