summary refs log tree commit diff
path: root/Completion/User/_chown
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-06-27 05:33:25 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-06-27 05:33:25 +0000
commitb346c4796b3abdadd31cb0999d2f099ce9aa79af (patch)
tree748857cc950cb1bbe04bec42dd1b561b5d960afd /Completion/User/_chown
parentadefa2757ae03fd6af155345e386c4cde457b6b1 (diff)
downloadzsh-b346c4796b3abdadd31cb0999d2f099ce9aa79af.tar.gz
zsh-b346c4796b3abdadd31cb0999d2f099ce9aa79af.tar.xz
zsh-b346c4796b3abdadd31cb0999d2f099ce9aa79af.zip
Initial revision
Diffstat (limited to 'Completion/User/_chown')
-rw-r--r--Completion/User/_chown15
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