From 31d7eb890da9c40547b35fec44541809b0d6922f Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Sun, 26 Nov 2023 17:10:48 +0100 Subject: [PATCH] eshell settings Signed-off-by: Andreas Gerler --- bba-shell.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bba-shell.org b/bba-shell.org index 58758921..f94364a2 100644 --- a/bba-shell.org +++ b/bba-shell.org @@ -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: -- 2.47.3