From b11ca2c01c1aa0b198880af073e9d79d5f109c92 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 5 Oct 2017 13:03:24 +0200 Subject: [PATCH] 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. --- share/completions/pip2.fish | 2 +- share/completions/pip3.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/pip2.fish b/share/completions/pip2.fish index 51284c455..7558d988b 100644 --- a/share/completions/pip2.fish +++ b/share/completions/pip2.fish @@ -1,3 +1,3 @@ if command -sq pip2 - pip2 completion --fish | source + pip2 completion --fish | sed 's/-c pip/-c pip2/' | source end diff --git a/share/completions/pip3.fish b/share/completions/pip3.fish index 10c525927..9f874bf93 100644 --- a/share/completions/pip3.fish +++ b/share/completions/pip3.fish @@ -1,3 +1,3 @@ if command -sq pip3 - pip3 completion --fish | source + pip3 completion --fish | sed 's/-c pip/-c pip3/' | source end