Emacs Eshell Aliases Setting

Setting Aliases in Eshell and be done programmatically in an elisp configuration. To do so, you will need to invoke the eshell/alias function from your elisp script file.

Here is an example of a simple aliases configuration:

;; open files
(eshell/alias "ff" "find-file $1")
(eshell/alias "fw" "find-file-other-window $1")
(eshell/alias "fr" "find-file-other-frame $1")

;; list files
(eshell/alias "ll" "ls -la $*")
(eshell/alias "la" "ls -a $*")

You can copy/migrate your .bash_alises configs here accordingly.

Reference: