summaryrefslogtreecommitdiff
path: root/python/pip/pip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'python/pip/pip.sh')
-rw-r--r--python/pip/pip.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/pip/pip.sh b/python/pip/pip.sh
new file mode 100644
index 0000000000..b9b1ea1477
--- /dev/null
+++ b/python/pip/pip.sh
@@ -0,0 +1,9 @@
+# bash completion for pip
+
+_pip_completion()
+{
+ COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
+ COMP_CWORD=$COMP_CWORD \
+ PIP_AUTO_COMPLETE=1 $1 ) )
+}
+complete -o default -F _pip_completion pip