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

local expl

if [[ "$words[CURRENT-1]" = -[AH] ]]; then
  _arrays
else
  _tags any:argument elements || return 1

  _description expl 'inode element'
  [[ "$PREFIX[1]" = + ]] &&
      compadd "$expl[@]" - +device +inode +mode +nlink +uid +gid +rdev +size \
                           +atime +mtime +ctime +blksize +block +link
  _files
fi