From 2d4a6b2d83dfd61760dfc569265a67fea3249bdb Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 4 Apr 2017 11:29:10 -0400 Subject: 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. --- shell/bash-completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shell') 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 ;; '') -- cgit v1.2.3-70-g09d2