X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=1af7ed7e5470e18aeec5154c5a0d3782a1c53906;hb=85825da48abac0bf3426f42dad5aa5a01c4d42c3;hp=bd8ab85e5a4c4d717453bc70b085cea4e850ef9b;hpb=57254cb4b9a8321eaec6e68d84b1e484bdb1790e;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index bd8ab85..1af7ed7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1556,6 +1556,7 @@ if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then fi chpwd() { + if (( $DIRSTACKSIZE <= 0 )) || [[ -z $DIRSTACKFILE ]]; then return; fi local -ax my_stack my_stack=( ${PWD} ${dirstack} ) if is42 ; then