X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=f5088f69b3e62a049c3bf0e84c5fab87fae4115a;hb=fb6dc41fca192a4c88330c11ead8f958e9c92de7;hp=5d908f023731ee2887726b5f376997e732e16bf7;hpb=43090cf38bb0b6dd9840a52ac4658eaa1e1c38e4;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 5d908f0..f5088f6 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1077,7 +1077,7 @@ DIRSTACKFILE=${DIRSTACKFILE:-${HOME}/.zdirs} if [[ -f ${DIRSTACKFILE} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then dirstack=( ${(f)"$(< $DIRSTACKFILE)"} ) # "cd -" won't work after login by just setting $OLDPWD, so - [[ -d $dirstack[0] ]] && cd $dirstack[0] && cd $OLDPWD + [[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD fi chpwd() {