summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-04-04 11:29:10 -0400
committerDave Reisner <dreisner@archlinux.org>2017-04-04 11:29:10 -0400
commit2d4a6b2d83dfd61760dfc569265a67fea3249bdb (patch)
tree5f6b9c311de6b373071f44855611218a3e50fa0f /shell
parentccfe1f2e0d55198dcd6b9ed63ec3c60b6008a219 (diff)
downloadasp32-2d4a6b2d83dfd61760dfc569265a67fea3249bdb.tar.xz
avoid leaking git output for completions
completions might trigger tracking of a new package. it all goes to stderr, but let's not crowd the output regardless.
Diffstat (limited to 'shell')
-rw-r--r--shell/bash-completion6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/bash-completion b/shell/bash-completion
index 7233705..acff4c8 100644
--- a/shell/bash-completion
+++ b/shell/bash-completion
@@ -39,11 +39,11 @@ _asp() {
word=${COMP_WORDS[i]}
if in_array "$word" ${verbs[ALL_PACKAGES]}; then
verb=$word
- comps=$(\asp list-all | sed 's,.*/,,')
+ comps=$(ASP_GIT_QUIET=1 \asp list-all | sed 's,.*/,,')
break
elif in_array "$word" ${verbs[LOCAL_PACKAGES]}; then
verb=$word
- comps=$(\asp list-local | sed 's,.*/,,')
+ comps=$(ASP_GIT_QUIET=1 \asp list-local | sed 's,.*/,,')
break
elif in_array "$word" ${verbs[NONE]}; then
verb=$word
@@ -55,7 +55,7 @@ _asp() {
case $verb in
show)
if (( i < ${#COMP_WORDS[@]} - 2 )); then
- comps=$(\asp ls-files "${COMP_WORDS[i+1]}" 2>/dev/null)
+ comps=$(ASP_GIT_QUIET=1 \asp ls-files "${COMP_WORDS[i+1]}" 2>/dev/null)
fi
;;
'')