mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-12 00:03:39 +08:00
d4ed2ca447
\b does not match "end of spaces" but rather "start of a-z/0-9" and so
does not match the start of string '-c'. Match (and then re-insert) a
literal ' ' as part of the pattern instead.
(cherry picked from commit b61c4f1cbc
)
8 lines
397 B
Fish
8 lines
397 B
Fish
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 -- " -c\s+pip\b" " -c pip3" | source
|
|
end
|