zshrc: dirstack: skip for ZSH_SUBSHELL
[grml-etc-core.git] / etc / zsh / zshrc
index c03b614..84d37a9 100644 (file)
@@ -1613,6 +1613,7 @@ if zstyle -T ':grml:chpwd:dirstack' enable; then
     }
 
     chpwd() {
+        (( ZSH_SUBSHELL )) && return
         (( $DIRSTACKSIZE <= 0 )) && return
         [[ -z $DIRSTACKFILE ]] && return
         grml_dirstack_filter $PWD && return