Use alias for brew prefix and speed up terminal launch by ~200ms.

This commit is contained in:
Jeff Geerling
2016-06-23 09:54:24 -05:00
parent 9353f2259d
commit 08d9fca512
+4 -3
View File
@@ -62,12 +62,13 @@ alias gsd='git svn dcommit'
alias gsfr='git svn fetch && git svn rebase'
# Turn on Git autocomplete.
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
brew_prefix=`brew --prefix`
if [ -f $brew_prefix/etc/bash_completion ]; then
. $brew_prefix/etc/bash_completion
fi
# Use brew-installed PHP binaries.
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
export PATH="$brew_prefix/opt/php56/bin:$PATH"
# Vagrant configuration.
# export VAGRANT_DEFAULT_PROVIDER='virtualbox'