From 9ed549a2bfcebf91b793335b58d9980001e1eb04 Mon Sep 17 00:00:00 2001 From: Jessie Hildebrandt Date: Sun, 5 Feb 2023 00:13:21 -0500 Subject: [PATCH] Add eshell-up package --- init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.el b/init.el index 1368a11..dceb4ab 100644 --- a/init.el +++ b/init.el @@ -979,6 +979,18 @@ DOCSTRING is an optional form that is discarded upon expansion." (global-diff-hl-mode) (diff-hl-flydiff-mode)) +;; ---------------------------------- ;; +;; eshell-up +;; ---------------------------------- ;; + +(external-package eshell-up + "Provides a shortcut for quickly navigating to parent directories in eshell." + :config + ;; `eshell-command-aliases-list' is not available until the `em-alias' module is loaded + (eval-after-load 'em-alias (lambda () + (add-to-list 'eshell-command-aliases-list '("up" "eshell-up $1")) + (add-to-list 'eshell-command-aliases-list '("pk" "eshell-up-peek $1"))))) + ;; ---------------------------------- ;; ;; fish-completion ;; ---------------------------------- ;;