Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: 3.1.6-pws-11 (corrected _sudo)



>
> Hm.  _sudo is forgotten.
>

Yep, it is not included. Please, use this version instead of 8892. It is using
Sven's corrections for completing external commands only. Also, the space before
_command_names is significant - you get funny results without it sometimes.

/andrej

--- /dev/null   Thu Dec  9 15:43:49 1999
+++ Completion/User/_sudo       Thu Dec  9 15:44:28 1999
@@ -0,0 +1,16 @@
+#compdef sudo
+
+_arguments \
+       '-V[show version]' \
+       '-l[list commands]' \
+       '-h[show help]' \
+       '-v[validate timestamp file]' \
+       '-k[remove timestamp file]' \
+       '-b[run command in background]' \
+       '-r:Kerberos realm:' \
+       '-p:prompt:' \
+       '-u:user name:_users' \
+       '-s[run SHELL]' \
+       '-H[set HOME environment variable]' \
+       ':complete command name: _command_names -e'  \
+       '*::arguments: _normal'



Messages sorted by: Reverse Date, Date, Thread, Author