1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-03 01:11:37 +02:00

moved from Completion/User/_chown

This commit is contained in:
Sven Wischnowsky 2001-04-02 11:46:20 +00:00
parent 20d4d6cf12
commit b780965281

@ -0,0 +1,19 @@
#compdef chown chgrp
local suf
if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
if [[ $service = chgrp ]] || compset -P '*[:.]'; then
_groups
else
if [[ $OSTYPE = (solaris*|hpux*) ]]; then
suf=':'
else
suf='.'
fi
compset -S '.*' && unset suf
_users -S "$suf" -q
fi
else
_files
fi