From 8b1bd049dde2032a7f2ccf0abb8dd21d58fd8fcb Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 2 Jun 2020 09:40:29 -0400 Subject: [PATCH] Enable sudo password caching in eshell --- emacs/init.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index c949122..e134be5 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2579,6 +2579,23 @@ Make EShell's tab completion work like Bash's: (setq eshell-cmpl-cycle-completions nil) #+END_SRC +Add additional useful modules: +#+BEGIN_SRC emacs-lisp + (add-to-list 'eshell-modules-list 'eshell-tramp) +#+END_SRC + +Prefer Lisp commands to external programs: +#+BEGIN_SRC emacs-lisp + (setq eshell-prefer-lisp-functions t + eshell-prefer-lisp-variables t) +#+END_SRC + +Enable password caching: +#+BEGIN_SRC emacs-lisp + (setq password-cache t + password-cache-expiry 120) +#+END_SRC + Destroy shell buffers created by eshell when the process dies:: #+BEGIN_SRC emacs-lisp (setq eshell-destroy-buffer-when-process-dies t)