]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor shell-mode fix for zsh
authorMatt Armstrong <marmstrong@google.com>
Sun, 11 Dec 2016 01:29:51 +0000 (17:29 -0800)
committerGlenn Morris <rgm@gnu.org>
Sun, 11 Dec 2016 01:29:51 +0000 (17:29 -0800)
* lisp/shell.el (shell-mode): Prevent shell-dirstack-query
becoming confused by zsh abbreviations.  (Bug#24632)

Copyright-paperwork-exempt: yes

lisp/shell.el

index d1b2e87574639af952156f34d4fc5d05a61c025d..cabd1e5a47413c500564db45b3159c34f8ddf1b6 100644 (file)
@@ -590,6 +590,7 @@ buffer."
                  ((string-equal shell "ksh") "echo $PWD ~-")
                  ;; Bypass any aliases.  TODO all shells could use this.
                  ((string-equal shell "bash") "command dirs")
+                 ((string-equal shell "zsh") "dirs -l")
                  (t "dirs")))
       ;; Bypass a bug in certain versions of bash.
       (when (string-equal shell "bash")