summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:59:06 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:59:06 +0000
commit809f2996b29c40ea5a3d6bd89f0489f9864aa126 (patch)
treee5dbe6418e466fca0b1de7dd192b39eb6230c9d3 /Completion
parent1549d555a51b8aa5cd5d2b9d455034e8e9d05fc1 (diff)
downloadzsh-809f2996b29c40ea5a3d6bd89f0489f9864aa126.tar.gz
zsh-809f2996b29c40ea5a3d6bd89f0489f9864aa126.tar.xz
zsh-809f2996b29c40ea5a3d6bd89f0489f9864aa126.zip
moved from Completion/User/_pack
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_pack16
1 files changed, 16 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_pack b/Completion/Unix/Command/_pack
new file mode 100644
index 000000000..b0172dca8
--- /dev/null
+++ b/Completion/Unix/Command/_pack
@@ -0,0 +1,16 @@
+#compdef pack unpack pcat=unpack
+
+local expl state line
+
+case $service in
+  pack)
+    _arguments -C \
+      '-f[force packing even for files which will not benefit]' \
+      '-[show statistics for files]' \
+      '*:file to compress:_files -g \*\~\*.z'
+  ;;
+  unpack)
+    _description files expl 'compressed file'
+    _files "$expl[@]" -g '*.z'
+  ;;
+esac