summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-01-26 12:31:56 +0100
committerGravatar Tom Willemse2014-01-26 12:31:56 +0100
commit979ccf763cddc5be75502878b15ec87820b1076d (patch)
treedb69710ecab7fdec8f37bf99aba77f8a3edb05f6
parent207e636cb3cb73e35a2fb2b9b96366f3de51c00c (diff)
downloademacs-979ccf763cddc5be75502878b15ec87820b1076d.tar.gz
emacs-979ccf763cddc5be75502878b15ec87820b1076d.zip
Add eshell-fringe-status, change eshell prompt
-rw-r--r--.emacs.d/init.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index c53578d..c8f1688 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -258,11 +258,8 @@ MODE1 is enabled and vice-versa."
"Show a pretty shell prompt."
(let ((status (if (zerop eshell-last-command-status) ?+ ?-)))
(concat
- (propertize (char-to-string status)
- 'face `(:foreground ,(if (= status ?+)
- "green"
- "red")))
- "> ")))
+ (oni:shorten-dir (abbreviate-file-name (eshell/pwd)))
+ " > ")))
(defun oni:go-mode-func ()
"Function for `go-mode-hook'."
@@ -1006,7 +1003,7 @@ If no direction is given, don't split."
(stante-after em-prompt
(setq eshell-highlight-prompt nil)
(setq eshell-prompt-function 'oni:eshell-prompt)
- (setq eshell-prompt-regexp "^[+-]> "))
+ (setq eshell-prompt-regexp "^[~/].* > "))
(stante-after em-term
(add-to-list 'eshell-visual-commands "unison"))
@@ -1265,7 +1262,8 @@ If no direction is given, don't split."
#'paredit-mode #'flycheck-mode #'eldoc-mode #'oni:set-emacs-lisp-keys)
(oni:add-hooks 'eshell-mode-hook
- #'buffer-disable-undo #'oni:set-keys-for-eshell)
+ #'buffer-disable-undo #'oni:set-keys-for-eshell
+ #'eshell-fringe-status-mode)
(oni:add-hooks 'go-mode-hook
#'oni:go-mode-func #'flycheck-mode)