From d8b1f0715f2e3927efb782dcdf7994d665b09d21 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 3 May 2018 11:32:18 +0200 Subject: [PATCH] [pip* completions] Silence stderr For some reason, these tools print an upgrade message to stderr, even when stdout goes somewhere else. --- share/completions/pip.fish | 2 +- share/completions/pip2.fish | 2 +- share/completions/pip3.fish | 2 +- share/completions/pipenv.fish | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/completions/pip.fish b/share/completions/pip.fish index 381d3feaa..6280623cb 100644 --- a/share/completions/pip.fish +++ b/share/completions/pip.fish @@ -1,4 +1,4 @@ if command -sq pip - pip completion --fish | source + pip completion --fish 2>/dev/null | source end diff --git a/share/completions/pip2.fish b/share/completions/pip2.fish index af3ef5630..c798fbb65 100644 --- a/share/completions/pip2.fish +++ b/share/completions/pip2.fish @@ -3,5 +3,5 @@ if command -sq pip2 # See discussion at https://github.com/fish-shell/fish-shell/pull/4448 # and pip bug at https://github.com/pypa/pip/pull/4755 # Keep this even after pip fix is upstreamed for users not on the latest pip - pip2 completion --fish | string replace -r -- " -c\s+pip\b" " -c pip2" | source + pip2 completion --fish 2>/dev/null | string replace -r -- " -c\s+pip\b" " -c pip2" | source end diff --git a/share/completions/pip3.fish b/share/completions/pip3.fish index 1542a5528..11c8dd12d 100644 --- a/share/completions/pip3.fish +++ b/share/completions/pip3.fish @@ -3,5 +3,5 @@ if command -sq pip3 # See discussion at https://github.com/fish-shell/fish-shell/pull/4448 # and pip bug at https://github.com/pypa/pip/pull/4755 # Keep this even after pip fix is upstreamed for users not on the latest pip - pip3 completion --fish | string replace -r -- " -c\s+pip\b" " -c pip3" | source + pip3 completion --fish 2>/dev/null | string replace -r -- " -c\s+pip\b" " -c pip3" | source end diff --git a/share/completions/pipenv.fish b/share/completions/pipenv.fish index 83f93f3ce..943b44d2b 100644 --- a/share/completions/pipenv.fish +++ b/share/completions/pipenv.fish @@ -1,3 +1,3 @@ if command -sq pipenv - pipenv --completion | source + pipenv --completion 2>/dev/null | source end