mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Document reasons for commmand name replacement in pip2/3 completions
(cherry picked from commit 429bdce4f1
)
This commit is contained in:
parent
78fe53406e
commit
04bde6cf5b
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
if command -sq pip2
|
||||
# pip[2|3] emits (or emitted) completions with the wrong command name
|
||||
# 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 "\b-c\s+pip\b" -- "-c pip2" | source
|
||||
end
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
if command -sq pip3
|
||||
# pip[2|3] emits (or emitted) completions with the wrong command name
|
||||
# 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 "\b-c\s+pip\b" -- "-c pip3" | source
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue