about summary refs log tree commit diff
path: root/Completion/Builtins/_stat
blob: 5a39e56e5b68c2db4ba8f7bcd2e39e6809724033 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#compdef stat

local expl

if [[ "$words[CURRENT-1]" = -[AH] ]]; then
  _description expl array
  compgen "$expl[@]" -A
else
  _description expl 'inode element'
  [[ "$PREFIX[1]" = + ]] &&
      compadd "$expl[@]" - +device +inode +mode +nlink +uid +gid +rdev +size \
                           +atime +mtime +ctime +blksize +block +link
  _files
fi