From 08d9fca5124a70cf93f58b04acf11a88f674a042 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 23 Jun 2016 09:54:24 -0500 Subject: [PATCH] Use alias for brew prefix and speed up terminal launch by ~200ms. --- .bash_profile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.bash_profile b/.bash_profile index b6478b8..b67db39 100644 --- a/.bash_profile +++ b/.bash_profile @@ -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'