]> git.phdru.name Git - dotfiles.git/blobdiff - .shellrc
.shellrc: install pip completion
[dotfiles.git] / .shellrc
index acb5c52d707ff4c9fd75d448a630f7aa71999744..e70784befeca0d18c725eba23c2561417815cd70 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -72,6 +72,7 @@ case "$SHELL" in
       s scp ssh smbclient tcpdump tshark wireshark; do
          ! has_completion $cmd && complete -o default -A hostname $cmd;
    done
+   unset has_completion
 
    complete -A job bg fg j jobs wait
    complete -A variable unset
@@ -80,6 +81,8 @@ case "$SHELL" in
       complete -W "`cd \"$HOME/lib/config\" && echo *`" include
    fi
    complete -W "`echo $BROWSER | sed 's/:/ /g'`" start-browser
+
+   which pip >/dev/null 2>&1 && eval "`pip completion --bash`"
    ;;
 
 */ksh)