summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 953a5b0..0ac4a68 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -232,10 +232,9 @@ MODE1 is enabled and vice-versa."
(defun oni:eshell-prompt ()
"Show a pretty shell prompt."
- (let ((status (if (zerop eshell-last-command-status) ?+ ?-)))
- (concat
- (oni:shorten-dir (abbreviate-file-name (eshell/pwd)))
- " > ")))
+ (concat (if (not (looking-back "\n")) "\n")
+ (oni:shorten-dir (abbreviate-file-name (eshell/pwd)))
+ " > "))
(defun oni:go-mode-func ()
"Function for `go-mode-hook'."