mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
18 lines
458 B
Text
18 lines
458 B
Text
#compdef stat
|
|
|
|
local expl
|
|
|
|
if [[ "$words[CURRENT-1]" = -[AH] ]]; then
|
|
_arrays
|
|
else
|
|
_tags options files || return 1
|
|
|
|
while _tags; do
|
|
_requested options expl 'inode element' &&
|
|
{ ! _style options prefix-needed || [[ "$PREFIX[1]" = + ]] } &&
|
|
compadd "$expl[@]" - +device +inode +mode +nlink +uid +gid +rdev \
|
|
+size +atime +mtime +ctime +blksize +block +link
|
|
fi
|
|
_requested files && _files
|
|
done
|
|
fi
|