From 2046fe78847153312e382a8d9fa641f3a4678690 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:31:08 +0000 Subject: moved from Completion/Builtins/_stat --- Completion/Zsh/Command/_stat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Completion/Zsh/Command/_stat (limited to 'Completion/Zsh') 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 -- cgit 1.4.1