From 21f1781275643b15115164c3e32a82f0c04f2414 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 14 Oct 1999 18:09:49 +0000 Subject: zsh-workers/8262 --- Completion/User/_gzip | 2 +- Completion/User/_hosts | 2 +- Completion/User/_killall | 6 ++++++ Completion/User/_pack | 6 ++++++ Completion/User/_uncompress | 2 +- Completion/User/_unpack | 6 ++++++ Completion/User/_users | 2 +- Completion/User/_whereis | 6 ++++++ 8 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 Completion/User/_killall create mode 100644 Completion/User/_pack create mode 100644 Completion/User/_unpack create mode 100644 Completion/User/_whereis (limited to 'Completion/User') diff --git a/Completion/User/_gzip b/Completion/User/_gzip index 8cd4d746e..07b51dead 100644 --- a/Completion/User/_gzip +++ b/Completion/User/_gzip @@ -3,4 +3,4 @@ local expl _description expl 'file to compress' -_files -g '*~*.[gG][zZ]' +_files "$expl[@]" -g '*~*.[gG][zZ]' diff --git a/Completion/User/_hosts b/Completion/User/_hosts index 9f5a39cca..00150f9b7 100644 --- a/Completion/User/_hosts +++ b/Completion/User/_hosts @@ -1,4 +1,4 @@ -#compdef ftp ncftp ping rwho rup xping traceroute +#compdef ftp ncftp ping rwho rup xping traceroute host local expl diff --git a/Completion/User/_killall b/Completion/User/_killall new file mode 100644 index 000000000..5df1acbb9 --- /dev/null +++ b/Completion/User/_killall @@ -0,0 +1,6 @@ +#compdef killall + +if compset -P 1 -; then + _description expl signal + compadd "$expl[@]" $signals[1,-3] +fi diff --git a/Completion/User/_pack b/Completion/User/_pack new file mode 100644 index 000000000..a15cfa709 --- /dev/null +++ b/Completion/User/_pack @@ -0,0 +1,6 @@ +#compdef pack + +local expl + +_description expl 'file to compress' +_files "$expl[@]" -g '*~*.z' diff --git a/Completion/User/_uncompress b/Completion/User/_uncompress index 5392d8fe9..f352ca15a 100644 --- a/Completion/User/_uncompress +++ b/Completion/User/_uncompress @@ -3,4 +3,4 @@ local expl _description expl 'compressed file' -_files -g '*.Z' +_files "$expl[@]" -g '*.Z' diff --git a/Completion/User/_unpack b/Completion/User/_unpack new file mode 100644 index 000000000..fb8867560 --- /dev/null +++ b/Completion/User/_unpack @@ -0,0 +1,6 @@ +#compdef unpack pcat + +local expl + +_description expl 'compressed file' +_files "$expl[@]" -g '*.z' diff --git a/Completion/User/_users b/Completion/User/_users index a01227724..a054ccc66 100644 --- a/Completion/User/_users +++ b/Completion/User/_users @@ -1,4 +1,4 @@ -#compdef last +#compdef last passwd groups # If a parameter `users' exists and it is an array, we first try to # complete only to its elements. diff --git a/Completion/User/_whereis b/Completion/User/_whereis new file mode 100644 index 000000000..42fc30969 --- /dev/null +++ b/Completion/User/_whereis @@ -0,0 +1,6 @@ +#compdef whereis + +local expl + +_description expl command +compgen "$expl[@]" -m -- cgit 1.4.1