From 54a3cef8f3b150e385f8706d856ad68f79d7ce96 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 18 Oct 2018 17:38:54 +0200 Subject: [PATCH] [Util] Quote current directory when switching to it in eshell --- site-lisp/db-utils.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 3133549..fd290a4 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -69,7 +69,7 @@ If already in `*ansi-term*' buffer, bury it." (when arg (end-of-line) (eshell-kill-input) - (insert (format "cd %s" current-dir)) + (insert (format "cd '%s'" current-dir)) (eshell-send-input)))))) (defun db/run-or-hide-shell ()