diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2000-05-23 18:06:32 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2000-05-23 18:06:32 +0000 |
commit | b9195aa57d0e2f9512450b169a807ff23b31def8 (patch) | |
tree | d252ccd479c0cf7d7a9f97a53f4f641b59ce30fe /Completion/User/_chown | |
parent | 63b7b10355ebcb9543bcb8f2f40f173de66f0740 (diff) | |
download | zsh-b9195aa57d0e2f9512450b169a807ff23b31def8.tar.gz zsh-b9195aa57d0e2f9512450b169a807ff23b31def8.tar.xz zsh-b9195aa57d0e2f9512450b169a807ff23b31def8.zip |
minor completion fixes (11541)
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 |