Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: 3.1.6-pws-11 (corrected _sudo)
- X-seq: zsh-workers 8973
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Tanaka Akira" <akr@xxxxxxxxxxx>, "Zsh hackers list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: 3.1.6-pws-11 (corrected _sudo)
- Date: Thu, 9 Dec 1999 15:48:29 +0300
- Importance: Normal
- In-reply-to: <rsq1z8xax6x.fsf@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> 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