1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Completion/User/_chown

16 lines
304 B
Plaintext
Raw Normal View History

1999-06-27 07:33:25 +02:00
#compdef chown chgrp
if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
if [[ ${words[1]:t} = chgrp ]] || compset -P '*[:.]'; then
1999-06-27 07:33:25 +02:00
_groups
else
if [[ $OSTYPE = (solaris*|hpux*) ]]; then
_users -S ':' -q
1999-06-27 07:33:25 +02:00
else
_users -S '.' -q
1999-06-27 07:33:25 +02:00
fi
fi
else
_files
fi