diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:31:08 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 11:31:08 +0000 |
commit | 2046fe78847153312e382a8d9fa641f3a4678690 (patch) | |
tree | d05fa7fa4fc72cbe838dfac95153a1c31dd64ee8 /Completion | |
parent | c72387bfcaec18c48624209fcdd100b46c0050bd (diff) | |
download | zsh-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/_stat | 20 |
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 |