浏览代码

Alias popd to remove deleted dirs from persistance

Matt Cable 15 年之前
父节点
当前提交
870551e960
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      lib/dirspersist.zsh

+ 4 - 1
lib/dirspersist.zsh

@@ -16,4 +16,7 @@ dirpersistrestore () {
 
 
 DIRSTACKSIZE=10
 DIRSTACKSIZE=10
 setopt autopushd pushdminus pushdsilent pushdtohome pushdignoredups
 setopt autopushd pushdminus pushdsilent pushdtohome pushdignoredups
-dirpersistrestore
+dirpersistrestore
+
+# Make popd changes permanent without having to wait for logout
+alias popd="popd;dirpersiststore"