change sudo to doas for open file with root privileges
This commit is contained in:
parent
5c590da187
commit
e81308a39c
@ -83,12 +83,12 @@
|
||||
browse-url-generic-program "iceweasel-uxp")
|
||||
|
||||
;;----------------------------------------------------------------------------
|
||||
;; sudo open file option
|
||||
;; doas open file option
|
||||
;;----------------------------------------------------------------------------
|
||||
(defun sudo-find-file (file-name)
|
||||
(defun doas-find-file (file-name)
|
||||
"Like find file, but opens the file as root."
|
||||
(interactive "FSudo Find File: ")
|
||||
(let ((tramp-file-name (concat "/sudo::" (expand-file-name file-name))))
|
||||
(interactive "FDoas Find File: ")
|
||||
(let ((tramp-file-name (concat "/doas::" (expand-file-name file-name))))
|
||||
(find-file tramp-file-name)))
|
||||
|
||||
;;----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user