[issue1055] grml bug report: Daniel Hahler
Daniel Hahler
bts at bts.grml.org
Thu Sep 22 14:48:10 CEST 2011
New submission from Daniel Hahler <grml at thequod.de>:
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
----------
messages: 3958
nosy: grml
status: unread
title: grml bug report: Daniel Hahler
_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1055>
_____________________________________
More information about the Bugs-changes
mailing list