1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00
zsh/Completion/Zsh/Command/_stat
2001-04-02 11:31:08 +00:00

21 lines
562 B
Plaintext

#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