From 11a72e9f32147f4d91ac4e8da12d513f66fcdc1a Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Thu, 22 Feb 2024 11:25:43 +0100 Subject: tramp: update doc --- lisp/init-tramp.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lisp') diff --git a/lisp/init-tramp.el b/lisp/init-tramp.el index 8c9c579..ae279d0 100644 --- a/lisp/init-tramp.el +++ b/lisp/init-tramp.el @@ -5,10 +5,13 @@ (defun mpolden/sudo-file-name (filename) "Add a sudo-like TRAMP method to FILENAME. -If FILENAME already contains a sudo-like method, do nothing. If -FILENAME is accessed over SSH, replace \"/ssh:\" with -\"/sudo:\" or \"/doas:\". Otherwise, assume FILENAME is a local -path and prefix it with \"/sudo::\" or \"/doas::\"." +If FILENAME already contains a sudo-like method, return FILENAME +unchanged. If FILENAME is accessed over SSH, replace \"/ssh:\" +with \"/sudo:\". Otherwise, assume FILENAME is a local path and +prefix it with \"/sudo::\". + +If doas is available on the remote host, the doas method is used +instead of sudo." ;; sudo:remote-host works because of the special tramp-default-proxies-alist ;; configuration below (let* ((splitname (split-string filename ":")) -- cgit v1.2.3