diff options
author | Klaus Aehlig <aehlig@google.com> | 2017-06-29 16:57:50 +0200 |
---|---|---|
committer | Marcel Hlopko <hlopko@google.com> | 2017-06-29 17:50:55 +0200 |
commit | 2e8be9f09906fe7d34465bcae2435ddea9a74baa (patch) | |
tree | c613288c04c65914dc471f13dfb3c22637321840 /scripts/zsh_completion | |
parent | d698367067c1ca52c8e23eae58232d0d5a4861cd (diff) |
zsh completion: discard progress from internal bazel invocations
When computing completion options, bazel has to be called. For those
calls, discard the progress output (on stderr) to avoid them messing
up the terminial. Fixes #2279.
Change-Id: Ic1536058a44dac687ad59042ec56af50a4125f3b
PiperOrigin-RevId: 160525601
Diffstat (limited to 'scripts/zsh_completion')
-rw-r--r-- | scripts/zsh_completion/_bazel | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/zsh_completion/_bazel b/scripts/zsh_completion/_bazel index 5ae38d3d83..59588308a0 100644 --- a/scripts/zsh_completion/_bazel +++ b/scripts/zsh_completion/_bazel @@ -40,7 +40,7 @@ local curcontext="$curcontext" state line : ${BAZEL_COMPLETION_PACKAGE_PATH:=%workspace%} : ${BAZEL:=bazel} -b() { ${BAZEL} --noblock_for_lock "$@"; } +b() { ${BAZEL} --noblock_for_lock "$@" 2>/dev/null; } # Default cache lifetime is 1 week zstyle -s ":completion:${curcontext}:" cache-lifetime lifetime |