mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
Force correct names for pip2/pip3 command in completions
Work around bug pypa/pip#4755 Don't expect all users to be running a version of pip2/3 that includes the fix (once it's upstreamed). Will continue to work if/when pip2/3 emit the correct output. pip is already very slow at printing the completions (see #4448) so the `sed` call overhead is neglible.
This commit is contained in:
parent
6ce03a4a36
commit
b11ca2c01c
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
if command -sq pip2
|
||||
pip2 completion --fish | source
|
||||
pip2 completion --fish | sed 's/-c pip/-c pip2/' | source
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
if command -sq pip3
|
||||
pip3 completion --fish | source
|
||||
pip3 completion --fish | sed 's/-c pip/-c pip3/' | source
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue