]> git.armaanb.net Git - config.org.git/commitdiff
Add custom eshell prompt
authorArmaan Bhojwani <me@armaanb.net>
Sat, 3 Apr 2021 01:17:40 +0000 (21:17 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 3 Apr 2021 01:17:40 +0000 (21:17 -0400)
config.org

index 567dc32f29c57289eee3cfb578b3d0a2adb91d0a..2a300090adde83cb400bf2cbd348234c38ad0002 100644 (file)
@@ -511,6 +511,15 @@ Use Emacs globally. Use the Emacs daemon and bind a key in your wm to
 #+begin_src emacs-lisp
   (use-package emacs-everywhere)
 #+end_src
+** Eshell
+#+begin_src emacs-lisp
+  (setq eshell-prompt-function
+        (lambda nil
+          (propertize (concat
+                       "\n" (eshell/pwd) " ➤ ")
+                       'face '(:foreground "cyan")))
+        eshell-highlight-prompt nil)
+#+end_src
 * Emacs IDE
 ** LSP
 *** General