1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 17:01:19 +02:00
zsh/Completion/User/_chown
1999-06-27 05:33:25 +00:00

16 lines
308 B
Plaintext

#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
compgen -u -S ':' -q
else
compgen -u -S '.' -q
fi
fi
else
_files
fi