mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-20 14:04:03 +01:00
20 lines
354 B
Plaintext
20 lines
354 B
Plaintext
#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
|
|
suf=':'
|
|
else
|
|
suf='.'
|
|
fi
|
|
compset -S '.*' && unset suf
|
|
_users -S "$suf" -q
|
|
fi
|
|
else
|
|
_files
|
|
fi
|