Michael Prokop <bts@bts.grml.org>:
> % cat .zdirs
> /mnt/BACKUP/tmp
> /mnt/BACKUP
> /home/mika
> /home/mika
> /tmp
> /home/mika
> /grml/git/grml-etc-core
> /home/mika
> /grml/git/grml-live
> /home/mika
> /grml/git/grml2hd
> /home/mika
> /grml/git/grml-scripts
> /home/mika
> /home/mika
> /grml/git/grml-autoconfig
> /home/mika
> /home/mika
> /home/mika
> /grml/git/live-initramfs-grml
> /grml/git/live-initramfs-grml/debian/patches
>
> Frank, do you have any ideas why I've such a lot of duplicates inside ~/.zdirs?
> Makes the 'd' function of our zshrc quite hard to use for me. :)
Hmpf, crap. :-/
Can you add this line on top of your chpwd() function?
setopt localoptions xtrace
And tell me what that spits out?
...I'd expect ${(u)foo} to take care of dupes. No idea what's going on
without more information.
Regards, Frank |