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