From 63c51121fb069ada98888df93dce600800bad48a Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 17 Jan 2018 10:10:26 +0100 Subject: [PATCH] Eshell: Set password expiry to 1 hour --- .emacs.d/lisp/init-eshell.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.emacs.d/lisp/init-eshell.el b/.emacs.d/lisp/init-eshell.el index 72494385..685a17ea 100644 --- a/.emacs.d/lisp/init-eshell.el +++ b/.emacs.d/lisp/init-eshell.el @@ -96,10 +96,10 @@ (setq eshell-directory-name (concat emacs-cache-folder "eshell")) -;;; Use native 'sudo', system sudo asks for password every time. +;;; Use TRAMP to use Eshell as root. (require 'em-tramp) (setq password-cache t) -(setq password-cache-expiry nil) +(setq password-cache-expiry 3600) (with-eval-after-load 'esh-module ;; Don't print the banner.