bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24632: [PATCH] For zsh, set `shell-dirstack-query' to "dirs -l".


From: Matt Armstrong
Subject: bug#24632: [PATCH] For zsh, set `shell-dirstack-query' to "dirs -l".
Date: Tue, 11 Oct 2016 14:43:18 -0700

This causes directories to be printed in full, instead of using what zsh
calls dynamic and static named directories.  Emacs does not understand
the latter.
---
 lisp/shell.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/shell.el b/lisp/shell.el
index 1f019f2..cd62ff7 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -584,6 +584,7 @@ buffer."
       (setq shell-dirstack-query
            (cond ((string-equal shell "sh") "pwd")
                  ((string-equal shell "ksh") "echo $PWD ~-")
+                 ((string-equal shell "zsh") "dirs -l")
                  ;; Bypass any aliases.  TODO all shells could use this.
                  ((string-equal shell "bash") "command dirs")
                  (t "dirs")))
-- 
2.8.0.rc3.226.g39d4020






reply via email to

[Prev in Thread] Current Thread [Next in Thread]