From a3800f39490cad665452c888e4cbc862edeaaeda Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 May 2018 01:32:55 +0200 Subject: [PATCH] tools/eshell: set eshell-directory-name if ~/.doom.d/eshell exists --- modules/tools/eshell/config.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/tools/eshell/config.el b/modules/tools/eshell/config.el index cf2e5e729..e21fb562c 100644 --- a/modules/tools/eshell/config.el +++ b/modules/tools/eshell/config.el @@ -11,11 +11,11 @@ (def-package! eshell ; built-in :commands eshell-mode :init - (setq eshell-directory-name (concat doom-etc-dir "/eshell") - eshell-rc-script "~/.eshellrc" - eshell-aliases-file "~/.eshell_aliases" - ;; - eshell-scroll-to-bottom-on-input 'all + (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 eshell-scroll-to-bottom-on-output 'all eshell-buffer-shorthand t eshell-kill-processes-on-exit t