summary refs log tree commit diff
path: root/Completion/Builtins
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-05-02 15:20:46 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-05-02 15:20:46 +0000
commit5d0a0edccae5f20868653bf44321d3d2cac2ef11 (patch)
tree63a35b34e6d466489aeefd8f74bcc01f444fdd35 /Completion/Builtins
parente8eb43fc308acb3f1a8ebada7633c097e5050e46 (diff)
downloadzsh-5d0a0edccae5f20868653bf44321d3d2cac2ef11.tar.gz
zsh-5d0a0edccae5f20868653bf44321d3d2cac2ef11.tar.xz
zsh-5d0a0edccae5f20868653bf44321d3d2cac2ef11.zip
Initial revision
Diffstat (limited to 'Completion/Builtins')
-rw-r--r--Completion/Builtins/_stat10
1 files changed, 10 insertions, 0 deletions
diff --git a/Completion/Builtins/_stat b/Completion/Builtins/_stat
new file mode 100644
index 000000000..3cdbb2618
--- /dev/null
+++ b/Completion/Builtins/_stat
@@ -0,0 +1,10 @@
+#compdef stat
+
+if [[ "$words[CURRENT-1]" = -[AH] ]]; then
+  compgen -A
+else
+  [[ "$PREFIX[1]" = + ]] &&
+      compadd - +device +inode +mode +nlink +uid +gid +rdev +size \
+                +atime +mtime +ctime +blksize +block +link
+  _files
+fi