blob: 3a14d3f892c2f41714fff1efa36b07db7f938d1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#compdef chown chgrp
if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
if [[ $words[1] = chgrp ]] || compset -P '*[:.]'; then
_groups
else
if [[ $OSTYPE = (solaris*|hpux*) ]]; then
_users -S ':' -q
else
_users -S '.' -q
fi
fi
else
_files
fi
|