mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:12:08 +08:00
Use string replace
instead of sed
with better regex for pip completions
(cherry picked from commit d74d3f2ca4
)
This commit is contained in:
parent
af12bcb117
commit
7e48f5cc4f
|
@ -1,3 +1,3 @@
|
|||
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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user