diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-01 23:29:45 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-09-01 23:30:33 +0100 |
commit | 9b8d89b83c757f4fb34d586c594e9b6fbf62eadf (patch) | |
tree | 2fa78003d70e6a9c960b99356d5e2d3d5e300d47 | |
parent | bd7a94bb5f3cb3bd35a0280322f492362847f81b (diff) | |
download | dotfiles-9b8d89b83c757f4fb34d586c594e9b6fbf62eadf.tar.gz dotfiles-9b8d89b83c757f4fb34d586c594e9b6fbf62eadf.tar.bz2 dotfiles-9b8d89b83c757f4fb34d586c594e9b6fbf62eadf.zip |
+eshell prompt function to make it look nicer
-rw-r--r-- | Emacs/.config/emacs/config.org | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 25d892f..eb82fb5 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1118,7 +1118,7 @@ it's separation (or perhaps better phrased, *integration*) of two you can mix and match at will for use in the shell, which grants greater power than many shells I know of. -*** Configuration +*** Core Setup a function that /toggles/ the eshell window rather than just opening it via =+dx/toggle-buffer=. @@ -1130,7 +1130,13 @@ just opening it via =+dx/toggle-buffer=. "tt" #'+shell/toggle-eshell) :init (setq eshell-cmpl-ignore-case t - eshell-cd-on-directory t) + eshell-cd-on-directory t + eshell-prompt-function + (proc + (concat + (format "[%s]\n" (abbreviate-file-name (eshell/pwd))) + "λ ")) + eshell-prompt-regexp "^λ ") (with-eval-after-load "prog-mode" (+pretty/set-alist eshell-mode-hook |