summaryrefslogtreecommitdiff
path: root/shell/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'shell/bash-completion')
-rw-r--r--shell/bash-completion5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/bash-completion b/shell/bash-completion
index acff4c8..3c7fc06 100644
--- a/shell/bash-completion
+++ b/shell/bash-completion
@@ -17,6 +17,7 @@ _asp() {
[ALL_PACKAGES]='checkout difflog export list-arches list-repos log shortlog show ls-files'
[LOCAL_PACKAGES]='untrack update'
[NONE]='disk-usage gc help list-all list-local'
+ [PROTO]='set-git-protocol'
)
# flags
@@ -45,6 +46,10 @@ _asp() {
verb=$word
comps=$(ASP_GIT_QUIET=1 \asp list-local | sed 's,.*/,,')
break
+ elif in_array "$word" ${verbs[PROTO]}; then
+ verb=$word
+ comps='git http https'
+ break
elif in_array "$word" ${verbs[NONE]}; then
verb=$word
break