]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
eshell settings
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 26 Nov 2023 16:10:48 +0000 (17:10 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 26 Nov 2023 16:10:48 +0000 (17:10 +0100)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba-shell.org

index 58758921675758be54f05fa771daaa90b46be926..f94364a24720ab702e39150abfe3ea26f28f9067 100644 (file)
@@ -74,6 +74,9 @@ A little bit of code from https://github.com/bodil/emacs.d/blob/master/bodil/bod
     (setq eshell-prompt-regexp "^[^#$\n]+[#$] ")
 #+END_SRC
 
+#+begin_src elisp
+  (setq eshell-history-size 5000)
+#+end_src
 
 
 ** Most of this stolen from the great [[https://github.com/howardabrams/hamacs/blob/main/ha-eshell.org][Howard Abrams]]!
@@ -102,8 +105,8 @@ quotes:
 #+end_src
 Yeah, the variable =$*= doesn’t work as you’d expect, so use =$1= when calling Emacs functions that take one parameter).
 For instance, while I would like to have the following, the real solution is to make functions (see [[Less and More][below for details]]).
-#+begin_src sh
-  alias less view-file
+#+begin_src shell :tangle ~/.emacs.d/eshell/alias
+  alias less view-file $1
 #+end_src
 
 Third,  you want more /control/, you can use the help:eshell/alias function, but it doesn’t honor =$1= and other parameters, so we could create conditionally create function that we add to the [[help:eshell-mode-hook][eshell-mode-hook]], for instance: