mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Use string replace
instead of sed
with better regex for pip completions
This commit is contained in:
parent
0c21efea55
commit
d74d3f2ca4
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
if command -sq pip2
|
if command -sq pip2
|
||||||
pip2 completion --fish | sed 's/-c pip$/-c pip2/' | source
|
pip3 completion --fish | string replace -r "\b-c\s+pip\b" -- "-c pip2" | source
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
if command -sq pip3
|
if command -sq pip3
|
||||||
pip3 completion --fish | sed 's/-c pip$/-c pip3/' | source
|
pip3 completion --fish | string replace -r "\b-c\s+pip\b" -- "-c pip3" | source
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue