X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=f6434caf70f8554864523e2ddc6954b2c74badeb;hp=72fde6edb36784ab9131c4cbd753f74bd8d45f06;hb=ead1a063a2fb9189bc697be2120b24cf3f3dd56a;hpb=cdc48e89c5ae0fe84ae458a20ebdd36282a2e81c diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 72fde6e..f6434ca 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1617,7 +1617,7 @@ chpwd() { builtin print -l ${GRML_PERSISTENT_DIRSTACK} >! ${DIRSTACKFILE} } -if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then +if [[ -f ${DIRSTACKFILE} ]]; then # Enabling NULL_GLOB via (N) weeds out any non-existing # directories from the saved dir-stack file. dirstack=( ${(f)"$(< $DIRSTACKFILE)"}(N) )