Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
(add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode)
#+end_src
-
+#+begin_src elisp
+ (add-to-list 'eshell-visual-commands "ec2")
+#+end_src
** Most of this stolen from the great [[https://github.com/howardabrams/hamacs/blob/main/ha-eshell.org][Howard Abrams]]!
[2022-12-08 Thu 17:43]
*** Aliases
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:
#+begin_src emacs-lisp :tangle no
(defun ha-eshell-add-aliases ()