about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:31:08 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:31:08 +0000
commit2046fe78847153312e382a8d9fa641f3a4678690 (patch)
treed05fa7fa4fc72cbe838dfac95153a1c31dd64ee8 /Completion
parentc72387bfcaec18c48624209fcdd100b46c0050bd (diff)
downloadzsh-2046fe78847153312e382a8d9fa641f3a4678690.tar.gz
zsh-2046fe78847153312e382a8d9fa641f3a4678690.tar.xz
zsh-2046fe78847153312e382a8d9fa641f3a4678690.zip
moved from Completion/Builtins/_stat
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Zsh/Command/_stat20
1 files changed, 20 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_stat b/Completion/Zsh/Command/_stat
new file mode 100644
index 000000000..5ba06388b
--- /dev/null
+++ b/Completion/Zsh/Command/_stat
@@ -0,0 +1,20 @@
+#compdef stat
+
+local expl ret=1
+
+if [[ "$words[CURRENT-1]" = -[AH] ]]; then
+  _arrays
+else
+  _tags files options || return 1
+
+  while _tags; do
+    _requested files && _files && ret=0
+    _requested options &&
+        { ! zstyle -T ":completion:${curcontext}:options" prefix-needed ||
+          [[ "$PREFIX[1]" = + || ret -eq 1 ]] } &&
+        _all_labels options expl 'inode element' \
+            compadd - +device +inode +mode +nlink +uid +gid +rdev \
+                      +size +atime +mtime +ctime +blksize +block +link
+    (( ret )) || return 0
+  done
+fi