mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:41:42 +08:00
[pip* completions] Silence stderr
For some reason, these tools print an upgrade message to stderr, even when stdout goes somewhere else.
This commit is contained in:
parent
baeeef3233
commit
d8b1f0715f
|
@ -1,4 +1,4 @@
|
|||
if command -sq pip
|
||||
pip completion --fish | source
|
||||
pip completion --fish 2>/dev/null | source
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
if command -sq pipenv
|
||||
pipenv --completion | source
|
||||
pipenv --completion 2>/dev/null | source
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user