Add `eshell-buffer-name`

This commit is contained in:
Case Duckworth 2021-08-08 22:45:50 -05:00
parent e2f167fbc5
commit 9f93b9ab5c
1 changed files with 6 additions and 0 deletions

View File

@ -393,6 +393,12 @@ like a dumbass."
;; Etc.
(when (boundp 'simple-modeline--mode-line)
(setq mode-line-format '(:eval simple-modeline--mode-line))))
(defun eshell-buffer-name ()
(rename-buffer (concat "*eshell*<" (eshell/pwd) ">") t))
(add-hook 'eshell-directory-change-hook #'eshell-buffer-name)
(add-hook 'eshell-prompt-load-hook #'eshell-buffer-name)
(:hook eshell-mode@setup
eshell-arg-hist-mode))