From 6040f7a55114289b45014aa03abd7ea8a9c9a5f0 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 16 Apr 2014 00:03:08 +0200 Subject: Don't show exit status in eshell prompt Also add a newline at the end of any output if the program doesn't add it already. --- .emacs.d/init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.emacs.d') 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'." -- cgit v1.2.3-54-g00ecf