Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: a few small completions
- X-seq: zsh-workers 8262
- From: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: a few small completions
- Date: Thu, 14 Oct 1999 18:43:12 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
I noticed a small omission in _uncompress and _gzip which may well have already been fixed. I've also taken the opportunity to add a few new tiny completions - for whereis, (un)pack and killall. I also tried to think of any other commands for which _nothing was applicable. The only one I came up with was whoami though I found a couple more for _hosts and _users.
Oliver Kiddle
*** Completion/User/_gzip.bak Thu Oct 14 18:27:39 1999
--- Completion/User/_gzip Thu Oct 14 18:28:08 1999
***************
*** 3,6 ****
local expl
_description expl 'file to compress'
! _files -g '*~*.[gG][zZ]'
--- 3,6 ----
local expl
_description expl 'file to compress'
! _files "$expl[@]" -g '*~*.[gG][zZ]'
*** Completion/User/_uncompress.bak Mon Aug 30 12:28:34 1999
--- Completion/User/_uncompress Thu Oct 14 18:12:23 1999
***************
*** 3,6 ****
local expl
_description expl 'compressed file'
! _files -g '*.Z'
--- 3,6 ----
local expl
_description expl 'compressed file'
! _files "$expl[@]" -g '*.Z'
*** Completion/Builtins/_nothing.bak Thu Oct 14 18:09:49 1999
--- Completion/Builtins/_nothing Thu Oct 14 18:09:56 1999
***************
*** 1,3 ****
! #compdef true false
_message 'no argument or option'
--- 1,3 ----
! #compdef true false whoami
_message 'no argument or option'
*** /dev/null Thu Oct 14 12:54:34 1999
--- Completion/User/_whereis Thu Oct 14 18:11:44 1999
***************
*** 0 ****
--- 1,6 ----
+ #compdef whereis
+
+ local expl
+
+ _description expl command
+ compgen "$expl[@]" -m
*** /dev/null Thu Oct 14 12:54:34 1999
--- Completion/User/_pack Thu Oct 14 18:11:44 1999
***************
*** 0 ****
--- 1,6 ----
+ #compdef pack
+
+ local expl
+
+ _description expl 'file to compress'
+ _files "$expl[@]" -g '*~*.z'
*** /dev/null Thu Oct 14 12:54:34 1999
--- Completion/User/_unpack Thu Oct 14 18:11:44 1999
***************
*** 0 ****
--- 1,6 ----
+ #compdef unpack pcat
+
+ local expl
+
+ _description expl 'compressed file'
+ _files "$expl[@]" -g '*.z'
*** /dev/null Thu Oct 14 12:54:34 1999
--- Completion/User/_killall Thu Oct 14 18:11:44 1999
***************
*** 0 ****
--- 1,6 ----
+ #compdef killall
+
+ if compset -P 1 -; then
+ _description expl signal
+ compadd "$expl[@]" $signals[1,-3]
+ fi
*** Completion/User/_users.bak Thu Oct 14 18:35:58 1999
--- Completion/User/_users Thu Oct 14 18:36:06 1999
***************
*** 1,4 ****
! #compdef last
# If a parameter `users' exists and it is an array, we first try to
# complete only to its elements.
--- 1,4 ----
! #compdef last passwd groups
# If a parameter `users' exists and it is an array, we first try to
# complete only to its elements.
*** Completion/User/_hosts.bak Thu Oct 14 18:36:33 1999
--- Completion/User/_hosts Thu Oct 14 18:36:43 1999
***************
*** 1,4 ****
! #compdef ftp ncftp ping rwho rup xping traceroute
local expl
--- 1,4 ----
! #compdef ftp ncftp ping rwho rup xping traceroute host
local expl
Messages sorted by:
Reverse Date,
Date,
Thread,
Author