From: Oliver Kiddle <opk@u.genie.co.uk>
To: Zsh workers <zsh-workers@sunsite.auc.dk>
Subject: PATCH: a few small completions
Date: Thu, 14 Oct 1999 18:43:12 +0100 [thread overview]
Message-ID: <38061630.34E6684D@u.genie.co.uk> (raw)
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
reply other threads:[~1999-10-14 17:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38061630.34E6684D@u.genie.co.uk \
--to=opk@u.genie.co.uk \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).