commit 2413ef1b6d81fcfea856122a2b356d0e9f13473b
parent fd6a16da67ba756a1eeb4ec2cba2a08d36cb53cf
Author: Michael Neuper <michael@michaelneuper.com>
Date: Sat, 26 Jul 2025 22:04:41 +0200
configure eshell
- add `fzf'-like `C-r' keybinding
- add `cd' and `home' aliases
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/config.org b/config.org
@@ -572,6 +572,7 @@ Ensure [[https://github.com/alexluigit/dirvish/blob/main/docs/CUSTOMIZING.org#in
*** eshell
Customise eshell:
- Set custom aliases
+- Add an =fzf=-like =C-r= keybinding
- Set custom prompt
- Add icons to =eshell/ls= and make links clickable
#+begin_src emacs-lisp
@@ -579,6 +580,8 @@ Customise eshell:
;; ALIASES
(set-eshell-alias!
"ll" "ls -lAh $*"
+ "cd" "z $*"
+ "home" "cd ~"
;; git
"gs" "git-st"
@@ -597,6 +600,9 @@ Customise eshell:
"bic" "brew install --cask $*"
"bu" "brew update && brew upgrade")
+ (map! :map eshell-mode-map
+ :ni "C-r" #'+eshell/search-history)
+
;; PROMPT
(custom-set-faces!
`(+eshell-prompt-pwd