Fix #4279: runaway duplication in eshell-command-aliases-list

This commit is contained in:
Henrik Lissner 2020-11-17 12:28:25 -05:00
parent d21b4e643d
commit 6f3f4de46d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -110,12 +110,11 @@ You should use `set-eshell-alias!' to change this.")
(after! em-term (after! em-term
(pushnew! eshell-visual-commands "tmux" "htop" "vim" "nvim" "ncmpcpp")) (pushnew! eshell-visual-commands "tmux" "htop" "vim" "nvim" "ncmpcpp"))
(add-hook! 'eshell-alias-load-hook (after! em-alias
(defun +eshell-init-aliases-h () (setq +eshell--default-aliases eshell-command-aliases-list
(setq +eshell--default-aliases eshell-command-aliases-list eshell-command-aliases-list
eshell-command-aliases-list (append eshell-command-aliases-list
(append eshell-command-aliases-list +eshell-aliases))))
+eshell-aliases)))))
(after! esh-mode (after! esh-mode