]> git.phdru.name Git - dotfiles.git/blobdiff - .shellrc
Use builtin 'type -p' instead of external 'which' with bash
[dotfiles.git] / .shellrc
index 035f756e4c4ce6302c7f41a484e4136af50cefe6..9405f793dcefa7e599f8466192bf738371b13850 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -121,7 +121,7 @@ if test -n "$BASH_VERSION"; then
    fi
    complete -W "`echo $BROWSER | sed 's/:/ /g'`" start-browser
 
-   if which pip >/dev/null 2>&1; then
+   if type -p pip >/dev/null 2>&1; then
       eval "`pip completion --bash`"
       rm -rf /tmp/pip_build_"$USER"
    fi