mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
config/default: don't consult authinfo for local sudo TRAMP buffers
This commit is contained in:
@ -48,6 +48,14 @@
|
|||||||
(unless IS-WINDOWS
|
(unless IS-WINDOWS
|
||||||
(setq tramp-default-method "ssh")) ; faster than the default scp
|
(setq tramp-default-method "ssh")) ; faster than the default scp
|
||||||
|
|
||||||
|
(defadvice! +default-inhibit-authinfo-for-sudo-a (orig-fn &rest args)
|
||||||
|
"Don't consult .authinfo for local sudo TRAMP buffers."
|
||||||
|
:around #'tramp-read-passwd
|
||||||
|
(let ((auth-sources
|
||||||
|
(unless (equal tramp-current-method "sudo")
|
||||||
|
auth-sources)))
|
||||||
|
(apply orig-fn args)))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Smartparens config
|
;;; Smartparens config
|
||||||
|
Reference in New Issue
Block a user