about summary refs log tree commit diff
path: root/Completion/Unix/Command/_perforce
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-14 15:48:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-14 15:48:53 +0000
commite77c7c284464aadb15ddaf270d26f5b534d04830 (patch)
tree043d72e1bd2b0a3d350ed835cd5d9414a5152e5c /Completion/Unix/Command/_perforce
parentb86c191af5689229c398ecdc0684f3ccbf8a108d (diff)
downloadzsh-e77c7c284464aadb15ddaf270d26f5b534d04830.tar.gz
zsh-e77c7c284464aadb15ddaf270d26f5b534d04830.tar.xz
zsh-e77c7c284464aadb15ddaf270d26f5b534d04830.zip
unposted: handle p4 protects completion
Diffstat (limited to 'Completion/Unix/Command/_perforce')
-rw-r--r--Completion/Unix/Command/_perforce12
1 files changed, 12 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index 271521141..a1308ffa5 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -2127,6 +2127,18 @@ _perforce_cmd_protect() {
 }
 
 
+(( $+functions[_perforce_cmd_protects] )) ||
+_perforce_cmd_protects() {
+  _arguments -s : \
+    '(-g -u)-a[show for all users]' \
+    '(-a -u)-g[select by group]:perforce group:_perforce_groups' \
+    '(-a -g)-u[select by user]:perforce user:_perforce_users' \
+    '-h[limit to host]:host:_perforce_hosts' \
+    '-m[single word summary]' \
+    '*:file:_perforce_files'
+}
+
+
 (( $+functions[_perforce_cmd_reopen] )) ||
 _perforce_cmd_reopen() {
   _arguments -s : \