* lisp/pcmpl-unix.el (pcomplete/doas): New function.
* etc/NEWS: Announce. (Bug#66551)
Co-authored-by: Visuwesh <visuweshm@gmail.com>
Pcomplete. Packages, like 'shell-mode', could set this in order to
suppress remote file name completion at all.
+---
+*** Completion for the 'doas' command has been added.
+Command completion for 'doas' in Eshell and Shell mode will now work.
+
** Shell Mode
+++
(funcall (or (pcomplete-find-completion-function (pcomplete-arg 1))
pcomplete-default-completion-function)))
+;;;###autoload
+(defun pcomplete/doas ()
+ "Completion for the `doas' command."
+ (pcomplete-opt "C(pcomplete-entries)Lnsu(pcmpl-unix-user-names)")
+ (funcall pcomplete-command-completion-function)
+ (funcall (or (pcomplete-find-completion-function (pcomplete-arg 1))
+ pcomplete-default-completion-function)))
+
(provide 'pcmpl-unix)
;;; pcmpl-unix.el ends here