mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Adding a fancy prompt for eshell.
This commit is contained in:
@@ -656,10 +656,14 @@
|
|||||||
(setq use-dialog-box nil) ;; No dialog box
|
(setq use-dialog-box nil) ;; No dialog box
|
||||||
(setq pop-up-windows nil) ;; No popup windows
|
(setq pop-up-windows nil) ;; No popup windows
|
||||||
|
|
||||||
|
;; The eshell prompt
|
||||||
(setopt eshell-prompt-function 'fancy-shell)
|
(setopt eshell-prompt-function 'fancy-shell)
|
||||||
(setopt eshell-prompt-regexp "^[^#$\n]* [$#] ")
|
(setopt eshell-prompt-regexp "^[^#$\n]* [$#] ")
|
||||||
(setopt eshell-highlight-prompt nil)
|
(setopt eshell-highlight-prompt nil)
|
||||||
|
|
||||||
|
;; Disabling company mode in eshell, because it's annoying.
|
||||||
|
(setq company-global-modes '(not eshell-mode))
|
||||||
|
|
||||||
(use-package eshell-toggle
|
(use-package eshell-toggle
|
||||||
:custom
|
:custom
|
||||||
(eshell-toggle-size-fraction 3)
|
(eshell-toggle-size-fraction 3)
|
||||||
|
|||||||
@@ -952,10 +952,14 @@ In my configs, all of my shells (bash, fish, zsh and the ESHELL) require my shel
|
|||||||
Eshell is an Emacs 'shell' that is written in Elisp.
|
Eshell is an Emacs 'shell' that is written in Elisp.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
;; The eshell prompt
|
||||||
(setopt eshell-prompt-function 'fancy-shell)
|
(setopt eshell-prompt-function 'fancy-shell)
|
||||||
(setopt eshell-prompt-regexp "^[^#$\n]* [$#] ")
|
(setopt eshell-prompt-regexp "^[^#$\n]* [$#] ")
|
||||||
(setopt eshell-highlight-prompt nil)
|
(setopt eshell-highlight-prompt nil)
|
||||||
|
|
||||||
|
;; Disabling company mode in eshell, because it's annoying.
|
||||||
|
(setq company-global-modes '(not eshell-mode))
|
||||||
|
|
||||||
(use-package eshell-toggle
|
(use-package eshell-toggle
|
||||||
:custom
|
:custom
|
||||||
(eshell-toggle-size-fraction 3)
|
(eshell-toggle-size-fraction 3)
|
||||||
|
|||||||
Reference in New Issue
Block a user