summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatt Cable <wozz@wookie.net>2010-03-15 20:34:26 -0600
committerMatt Cable <wozz@wookie.net>2010-09-19 19:33:41 -0600
commit870551e960c6cb506fd7cc232a069432dfc72f2c (patch)
treec22018721cbea2e885eabf629fcb0bb33b04472b /lib
parenta0a8ba666b29cbcdbba05726e4e2d46eca708ca1 (diff)
downloadzsh-870551e960c6cb506fd7cc232a069432dfc72f2c.tar.gz
zsh-870551e960c6cb506fd7cc232a069432dfc72f2c.tar.bz2
zsh-870551e960c6cb506fd7cc232a069432dfc72f2c.zip
Alias popd to remove deleted dirs from persistance
Diffstat (limited to 'lib')
-rw-r--r--lib/dirspersist.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dirspersist.zsh b/lib/dirspersist.zsh
index a7c077ae0..8364a879c 100644
--- a/lib/dirspersist.zsh
+++ b/lib/dirspersist.zsh
@@ -16,4 +16,7 @@ dirpersistrestore () {
DIRSTACKSIZE=10
setopt autopushd pushdminus pushdsilent pushdtohome pushdignoredups
-dirpersistrestore \ No newline at end of file
+dirpersistrestore
+
+# Make popd changes permanent without having to wait for logout
+alias popd="popd;dirpersiststore" \ No newline at end of file