BTS

Message3958

Author dhahler
Recipients bugs, dhahler
Date 2011-09-22.12:48:09
Content
There's a minor issue with your zshrc's dirstack handling.

I suppose the following should use the index "1", not "0":

    # "cd -" won't work after login by just setting $OLDPWD, so
    [[ -d $dirstack[0] ]] && cd $dirstack[0] && cd $OLDPWD

So the correct version would be:

    # "cd -" won't work after login by just setting $OLDPWD, so
    [[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD

I have found this snippet here:
http://git.grml.org/?p=grml-etc-core.git;a=blob_plain;f=etc/zsh/zshrc;hb=HEAD



Thanks,
Daniel
History
Date User Action Args
2011-09-22 12:48:10dhahlersetrecipients: + dhahler
2011-09-22 12:48:10dhahlerlinkissue1055 messages
2011-09-22 12:48:09dhahlercreate