summary refs log tree commit diff
diff options
context:
space:
mode:
-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