From fd4ac0a8c2c09a02275ee65eaf26f9dccf0de635 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 20 Mar 2014 09:35:18 +0000 Subject: unposted: in Perforce path completion complete depots after // --- Completion/Unix/Command/_perforce | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index bcfe5229a..839870211 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -1203,9 +1203,11 @@ _perforce_files() { # probably ought to be optional (you can do it with tags if # you really want). if [[ $PREFIX = //[^/]# && $whole_path -eq 0 ]]; then - # Complete //clientname spec. Don't complete non-directories... + # Complete //clientname or //depot spec. + # Don't complete non-directories... # I don't actually know if they are valid here. - altfiles+=("clients:Perforce client:_perforce_clients") + altfiles+=("clients:Perforce client:_perforce_clients" + "depots:Perforce depot:_perforce_depots") else local donefiles=1 if [[ -z $dodirs ]]; then -- cgit 1.4.1