diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 05:33:25 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-06-27 05:33:25 +0000 |
commit | b346c4796b3abdadd31cb0999d2f099ce9aa79af (patch) | |
tree | 748857cc950cb1bbe04bec42dd1b561b5d960afd /Completion/User/_chown | |
parent | adefa2757ae03fd6af155345e386c4cde457b6b1 (diff) | |
download | zsh-b346c4796b3abdadd31cb0999d2f099ce9aa79af.tar.gz zsh-b346c4796b3abdadd31cb0999d2f099ce9aa79af.tar.xz zsh-b346c4796b3abdadd31cb0999d2f099ce9aa79af.zip |
Initial revision
Diffstat (limited to 'Completion/User/_chown')
-rw-r--r-- | Completion/User/_chown | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Completion/User/_chown b/Completion/User/_chown new file mode 100644 index 000000000..1ec76b39e --- /dev/null +++ b/Completion/User/_chown @@ -0,0 +1,15 @@ +#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 |