mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-12-04 17:11:30 +01:00
19 lines
498 B
Text
19 lines
498 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' &&
|
|
{ ! zstyle -t ":completion${curcontext}: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
|