diff options
author | 2014-04-16 00:03:08 +0200 | |
---|---|---|
committer | 2014-04-16 00:15:29 +0200 | |
commit | 6040f7a55114289b45014aa03abd7ea8a9c9a5f0 (patch) | |
tree | 9994876cb2465131c6261ba268be20c22dda8b99 /.emacs.d | |
parent | 6c0656662b3557ca44aa63b52a28955b41bc9c86 (diff) | |
download | emacs-6040f7a55114289b45014aa03abd7ea8a9c9a5f0.tar.gz emacs-6040f7a55114289b45014aa03abd7ea8a9c9a5f0.zip |
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.
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 7 |
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'." |