diff options
-rw-r--r-- | eshell-conf.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eshell-conf.el b/eshell-conf.el index 25ffffb..02036b7 100644 --- a/eshell-conf.el +++ b/eshell-conf.el @@ -660,7 +660,11 @@ For example, \"...\" expands into \"../..\"." ;;; List files after changing directories -(setq eshell-list-files-after-cd t) +(defun eshell-directory-ls () + "Call \"dl -g eshell-last-arguments\" after \"cd\"." + (eshell/dl "--group-directories-first" (cdr eshell-last-arguments))) + +(add-hook 'eshell-directory-change-hook #'eshell-directory-ls) ;;; Eshell bookmark handler |