emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] 28/117: Add unix shell support


From: Matthew Fidler
Subject: [elpa] 28/117: Add unix shell support
Date: Fri, 25 Jul 2014 13:24:00 +0000

mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.

commit f84d09c326033b7f7265a8acafb01da06e82fbc0
Author: Matthew L. Fidler <address@hidden>
Date:   Wed Jul 16 10:46:09 2014 -0500

    Add unix shell support
---
 ergoemacs-functions.el |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 53355b5..d7afeaf 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -2157,6 +2157,11 @@ Sends shell prompt string to process, then turns on
        ((string-match "powershell.exe" shell)
         (set (make-local-variable 'dirtrack-list) (list "^PS 
\\([a-zA-Z]:.*\\)>" 1))
         (shell-dirtrack-mode -1)
+        (dirtrack-mode 1))
+       (t ;; Assume PS1 compliant shell
+        (setenv "PS1" "address@hidden:\\w\\$ ")
+        (set (make-local-variable 'dirtrack-list) (list 
"address@hidden:\\(.*\\)$" 1))
+        (shell-dirtrack-mode -1)
         (dirtrack-mode 1))))))
 
 (add-hook 'shell-mode-hook 'ergoemacs-shell-here-hook)



reply via email to

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