From 336b969a190921c2d1b54242cc890ea217e5ea6f Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 20 Jan 2008 01:31:15 +0100 Subject: [PATCH] zshrc: prevent chdir() from putting dupes into ~/.zdirs dirs -pl did print the complete stack, including dupes. Using ${dirstack} from the zsh/pararmeter module to fix this. --- debian/changelog | 6 ++++++ etc/zsh/zshrc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2fdf348..23fb692 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-etc-core (0.3.47) unstable; urgency=low + + * zshrc: prevent chdir() from putting dupes into ~/.zdirs + + -- Frank Terbeck Sun, 20 Jan 2008 01:30:00 +0100 + grml-etc-core (0.3.46) unstable; urgency=low [ Frank Terbeck ] diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index aea6d38..2503d0e 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -871,7 +871,7 @@ if [[ -f ~/.zdirs ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then fi chpwd() { - builtin dirs -pl >! ~/.zdirs + builtin print ${(u)dirstack} >! ~/.zdirs } # }}} -- 2.1.4