blob: c75dbc4b3c7deefd803f80d1e50fdbe70d946ba9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#compdef chown chgrp
if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
if [[ $words[1] = chgrp ]] || compset -P '*[:.]'; then
_groups
else
local expl
_description expl user
if [[ $OSTYPE = (solaris*|hpux*) ]]; then
compgen "$expl[@]" -u -S ':' -q
else
compgen "$expl[@]" -u -S '.' -q
fi
fi
else
_files
fi
|