X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=6b71d16af3ad7170b9f3becea1e7c0d7cbaa288f;hp=b119e24ca27a89aa4d3238aac2707f7dc6caabd7;hb=c33a7d6bb7a2314e9d75cdd6d4d90e65314fa259;hpb=6b2d2cf4c9aa350819b46449fe414e5d29c01347 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index b119e24..6b71d16 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Die Mai 15 10:53:41 CEST 2007 [mika] +# Latest change: Mit Mai 23 10:22:10 CEST 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -448,7 +448,7 @@ fi if [[ -f ~/.zdirs ]] && [[ ${#dirstack[*]} -eq 0 ]]; then dirstack=( ${(uf)"$(< ~/.zdirs)"} ) # "cd -" won't work after login by just setting $OLDPWD, so - cd $dirstack[0] && cd $OLDPWD + [[ -d $dirstack[0] ]] && cd $dirstack[0] && cd $OLDPWD fi chpwd() { builtin dirs -pl >! ~/.zdirs