From 5ab790c07de7a6d209e0f66560edc96caf3c35ad Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 May 2018 01:57:40 +0200 Subject: [PATCH] tools/eshell: default to ~/.doom.d/eshell or ~/.eshell --- modules/tools/eshell/config.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/tools/eshell/config.el b/modules/tools/eshell/config.el index 112af74bc..4a5ec3cb0 100644 --- a/modules/tools/eshell/config.el +++ b/modules/tools/eshell/config.el @@ -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