diff --git a/modules/emacs/eshell/config.el b/modules/emacs/eshell/config.el index 3e7e1156c..f5c61bab0 100644 --- a/modules/emacs/eshell/config.el +++ b/modules/emacs/eshell/config.el @@ -37,6 +37,11 @@ (add-hook 'eshell-mode-hook #'+eshell|init) (add-hook 'eshell-exit-hook #'+eshell|cleanup) + (after! em-alias + ;; Emulates popular shell utilities + (map-put eshell-command-aliases-list "z" '("cd =$1")) + (map-put eshell-command-aliases-list "bd" '("eshell-up $1"))) + (after! em-term ;; Visual commands require a proper terminal. Eshell can't handle that, so ;; it delegates these commands to a term buffer. @@ -76,3 +81,6 @@ redefines its keys every time `eshell-mode' is enabled." [remap evil-window-vsplit] #'+eshell/split-right)) (add-hook 'eshell-first-time-mode-hook #'+eshell|init-keymap)) + +(def-package! eshell-up + :commands (eshell-up eshell-up-peek)) diff --git a/modules/emacs/eshell/packages.el b/modules/emacs/eshell/packages.el new file mode 100644 index 000000000..d2ca8a2ec --- /dev/null +++ b/modules/emacs/eshell/packages.el @@ -0,0 +1,4 @@ +;; -*- no-byte-compile: t; -*- +;;; emacs/eshell/packages.el + +(package! eshell-up)