Commit Graph

14 Commits (42bdfeeb6a0fa9bf241800ad6abd4e3cc0f9c5b2)

Author SHA1 Message Date
Hongyi Zhao 42bdfeeb6a combine the pip completion code into one script. 2020-03-15 14:22:30 +08:00
Hongyi Zhao 23671ef4f3 try to simplify the logic: completion/available/pip.completion.bash 2020-03-15 13:42:55 +08:00
Hongyi Zhao cfe7166132 Based on the _pip_completion function defined by pip completion to determine
whether we should reevaluate the pip completion or not.
2020-03-14 23:37:21 +08:00
Hongyi Zhao db64f5521c FIXME: do the trick without exporting variable into environment.
Use _pip_completion_bash as the hook function name
2020-03-13 19:56:56 +08:00
Hongyi Zhao e6be506ce1 use _pip_command_path as the variable name to store the currently used pip's path. 2020-03-13 17:18:10 +08:00
Hongyi Zhao 4fe6611da2 use _pip_command_path_old for variable's name to store the pip's path:
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-03-13 17:05:10 +08:00
Hongyi Zhao 43d15b69e1 Ensure that the eval command only executed once for one virutualenv:
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-03-13 16:43:35 +08:00
Hongyi Zhao 5c663b871a little fix for the regex used to match the hook function name:
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-03-13 15:24:35 +08:00
Hongyi Zhao 1052200f0c Touchup codes for fixing pip completion when running it within/outside of pyenv/virtualenv/venv/conda environment:
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-03-13 15:00:23 +08:00
Hongyi Zhao cd0b2618fb Fix pip completion for running it within/outside of pyenv/virtualenv/venv/conda environment.
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-03-13 10:21:26 +08:00
Hongyi Zhao 9fcaab0efc try to fix for pyenv/virtualenv: completion/available/pip.completion.bash 2020-03-11 20:00:27 +08:00
Hongyi Zhao d54577f992 touch up
modified:   completion/available/pip.completion.bash
modified:   completion/available/pip3.completion.bash
2020-01-09 23:41:04 +08:00
Hongyi Zhao d85a254429 Fix the completion for pip/pip3 2020-01-09 23:20:28 +08:00
Ken Sheedlo b9f7a817a4 Add pip completion 2013-05-22 00:37:24 -06:00