commit ad9d088566e77346d4ff9d4d8e57a2bf03db3d1a parent 2c9f5ed8de4ec55c684979e7121913e5167618c8 Author: Vincent Demeester <vincent@sbr.pm> Date: Wed, 1 Nov 2023 21:41:18 +0100 tools/emacs: simpler eshell alias Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-shells.el | | | 6 | +++--- |
M | tools/emacs/etc/eshell/aliases | | | 1 | + |
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/emacs/config/config-shells.el b/tools/emacs/config/config-shells.el @@ -98,9 +98,9 @@ any directory proferred by `consult-dir'." 'eshell-mode-hook (lambda () (let ((ls (if (executable-find "exa") "exa" "ls"))) - (eshell/alias "ls" (concat ls " --color=always $*")) - (eshell/alias "ll" (concat ls " --color=always -l $*")) - (eshell/alias "l" (concat ls " --color=always -lah $*"))) + (eshell/alias "ls" (concat ls " $*")) + (eshell/alias "ll" (concat ls " -l $*")) + (eshell/alias "l" (concat ls " -lah $*"))) (eshell-smart-initialize) (eshell-dirs-initialize) (bind-keys :map eshell-mode-map diff --git a/tools/emacs/etc/eshell/aliases b/tools/emacs/etc/eshell/aliases @@ -1,2 +1,3 @@ alias l ls -lah $* alias ll ls -l $* +alias ls ls $*