index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | shell/bash-completion | 10 | ||||
-rw-r--r-- | shell/zsh-completion | 1 |
diff --git a/shell/bash-completion b/shell/bash-completion index 3c7fc06..881ab3d 100644 --- a/shell/bash-completion +++ b/shell/bash-completion @@ -23,7 +23,7 @@ _asp() { # flags local -A opts=( [UNKNOWN]='-a' - [NONE]='-f -h -V' + [NONE]='-f -h -u -V' ) if in_array "$prev" ${opts[UNKNOWN]}; then @@ -40,11 +40,11 @@ _asp() { word=${COMP_WORDS[i]} if in_array "$word" ${verbs[ALL_PACKAGES]}; then verb=$word - comps=$(ASP_GIT_QUIET=1 \asp list-all | sed 's,.*/,,') + comps=$(ASP_GIT_QUIET=1 \asp32 list-all | sed 's,.*/,,') break elif in_array "$word" ${verbs[LOCAL_PACKAGES]}; then verb=$word - comps=$(ASP_GIT_QUIET=1 \asp list-local | sed 's,.*/,,') + comps=$(ASP_GIT_QUIET=1 \asp32 list-local | sed 's,.*/,,') break elif in_array "$word" ${verbs[PROTO]}; then verb=$word @@ -60,7 +60,7 @@ _asp() { case $verb in show) if (( i < ${#COMP_WORDS[@]} - 2 )); then - comps=$(ASP_GIT_QUIET=1 \asp ls-files "${COMP_WORDS[i+1]}" 2>/dev/null) + comps=$(ASP_GIT_QUIET=1 \asp32 ls-files "${COMP_WORDS[i+1]}" 2>/dev/null) fi ;; '') @@ -73,4 +73,4 @@ _asp() { fi } -complete -F _asp asp +complete -F _asp asp32 diff --git a/shell/zsh-completion b/shell/zsh-completion index 13ede7c..20aa550 100644 --- a/shell/zsh-completion +++ b/shell/zsh-completion @@ -43,6 +43,7 @@ _arguments \ '-a[architecture]' \ '-f[overwrite files]' \ '-h[print help and exit]' \ + '-u[Force upstream asp behavior]' \ '-V[print version and exit]' \ '*::asp command:_asp_command' |