1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 14:04:03 +01:00
zsh/Completion/Builtins/_stat

21 lines
562 B
Plaintext
Raw Normal View History

1999-05-02 17:20:46 +02:00
#compdef stat
2000-04-01 22:43:43 +02:00
local expl ret=1
1999-05-02 17:20:46 +02:00
if [[ "$words[CURRENT-1]" = -[AH] ]]; then
2000-04-01 22:43:43 +02:00
_arrays
1999-05-02 17:20:46 +02:00
else
2000-04-01 22:43:43 +02:00
_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
1999-05-02 17:20:46 +02:00
fi