diff options
Diffstat (limited to 'Completion/User/_chown')
-rw-r--r-- | Completion/User/_chown | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/User/_chown b/Completion/User/_chown index aa2ff4928..0363e838c 100644 --- a/Completion/User/_chown +++ b/Completion/User/_chown @@ -1,14 +1,18 @@ #compdef chown chgrp +local suf + if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then if [[ ${words[1]:t} = chgrp ]] || compset -P '*[:.]'; then _groups else if [[ $OSTYPE = (solaris*|hpux*) ]]; then - _users -S ':' -q + suf=':' else - _users -S '.' -q + suf='.' fi + compset -S '.*' && unset suf + _users -S "$suf" -q fi else _files |