tools/eshell: default to ~/.doom.d/eshell or ~/.eshell

This commit is contained in:
Henrik Lissner 2018-05-15 01:57:40 +02:00
parent 7bf133e991
commit 5ab790c07d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -11,11 +11,12 @@
(def-package! eshell ; built-in
:commands eshell-mode
:init
(let ((dir (concat doom-private-dir "eshell")))
(when (file-directory-p dir)
(setq eshell-directory-name dir)))
(setq eshell-scroll-to-bottom-on-input 'all
(setq eshell-directory-name
(let ((dir (concat doom-private-dir "eshell")))
(if (file-directory-p dir)
dir
"~/.eshell"))
eshell-scroll-to-bottom-on-input 'all
eshell-scroll-to-bottom-on-output 'all
eshell-buffer-shorthand t
eshell-kill-processes-on-exit t