1 2 3 4 5 6 7 8 9 10 11 12 13
#compdef stat local expl if [[ "$words[CURRENT-1]" = -[AH] ]]; then _arrays 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