From d80337e27ed2137e32a603764dcc7d10e4c81e6c Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sun, 5 Feb 2023 00:17:07 -0500 Subject: [PATCH] Add "lsl" eshell alias --- init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.el b/init.el index dceb4ab..2df6b00 100644 --- a/init.el +++ b/init.el @@ -507,6 +507,15 @@ is already an active session to switch to or focus." ("C-c j" . tab-line-switch-to-prev-tab) ("C-c l" . tab-line-switch-to-next-tab))) +;; `eshell-command-aliases-list' is not available until the `em-alias' module is loaded, +;; so the alias additions are set up here + +(editor-feature em-alias + "Handles creation and management of command aliases for eshell." + :config + (eval-after-load 'em-alias (lambda () + (add-to-list 'eshell-command-aliases-list '("lsl" "ls -lh $1"))))) + ;; ---------------------------------- ;; ;; files ;; ---------------------------------- ;;