X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=c1a619fbb4046d6a7c203cae7740b8b3a39f4422;hb=658db70fd528c7b5f2b1ce8fbe7b65f00b540ab1;hp=f7c332b624d2f03c0299d155e4846f5a209c8983;hpb=b5070ac43c7fc3a280526aaa172a901862198c8b;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index f7c332b..c1a619f 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1064,10 +1064,12 @@ if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then fi chpwd() { + local -ax my_stack + my_stack=( ${PWD} ${dirstack} ) if is42 ; then - builtin print -l ${(u)dirstack} >! ${DIRSTACKFILE} + builtin print -l ${(u)my_stack} >! ${DIRSTACKFILE} else - uprint dirstack >! ${DIRSTACKFILE} + uprint my_stack >! ${DIRSTACKFILE} fi }