From e6be506ce11ea06163b225da7756262c23ff1b63 Mon Sep 17 00:00:00 2001 From: Hongyi Zhao Date: Fri, 13 Mar 2020 17:18:10 +0800 Subject: [PATCH] use _pip_command_path as the variable name to store the currently used pip's path. --- completion/available/pip.completion.bash | 4 ++-- completion/available/pip3.completion.bash | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/completion/available/pip.completion.bash b/completion/available/pip.completion.bash index ec226fbe..ebbd41aa 100644 --- a/completion/available/pip.completion.bash +++ b/completion/available/pip.completion.bash @@ -50,9 +50,9 @@ _pip_completion_hook() { _pip=/usr/bin/pip fi if [ -n "$_pip" ]; then - if [ -z "$_pip_command_path_old" ] || [ "$_pip_command_path_old" != "$_pip" ]; then + if [ -z "$_pip_command_path" ] || [ "$_pip_command_path" != "$_pip" ]; then eval "$($_pip completion --bash)" - export _pip_command_path_old=$_pip + export _pip_command_path=$_pip fi fi unset _pip diff --git a/completion/available/pip3.completion.bash b/completion/available/pip3.completion.bash index bfac7d66..acc78166 100644 --- a/completion/available/pip3.completion.bash +++ b/completion/available/pip3.completion.bash @@ -50,9 +50,9 @@ _pip_completion_hook() { _pip=/usr/bin/pip3 fi if [ -n "$_pip" ]; then - if [ -z "$_pip_command_path_old" ] || [ "$_pip_command_path_old" != "$_pip" ]; then + if [ -z "$_pip_command_path" ] || [ "$_pip_command_path" != "$_pip" ]; then eval "$($_pip completion --bash)" - export _pip_command_path_old=$_pip + export _pip_command_path=$_pip fi fi unset _pip