Add blt command to bash profile, comment out nvm stuff.

This commit is contained in:
Jeff Geerling
2016-12-01 15:00:37 -06:00
parent 497a068152
commit 4a77207274
+17 -5
View File
@@ -15,9 +15,6 @@ export LSCOLORS=ExFxCxDxBxegedabagacad
# Custom $PATH with extra locations. # Custom $PATH with extra locations.
export PATH=/usr/local/bin:/usr/local/sbin:$HOME/bin:/usr/local/git/bin:$HOME/.composer/vendor/bin:$PATH export PATH=/usr/local/bin:/usr/local/sbin:$HOME/bin:/usr/local/git/bin:$HOME/.composer/vendor/bin:$PATH
# Flush DNS cache (See: http://support.apple.com/kb/ht5343).
alias flush-dns='sudo killall -HUP mDNSResponder'
# Include alias file (if present) containing aliases for ssh, etc. # Include alias file (if present) containing aliases for ssh, etc.
if [ -f ~/.bash_aliases ] if [ -f ~/.bash_aliases ]
then then
@@ -71,8 +68,8 @@ fi
export PATH="$brew_prefix/opt/php56/bin:$PATH" export PATH="$brew_prefix/opt/php56/bin:$PATH"
# Use nvm. # Use nvm.
export NVM_DIR="$HOME/.nvm" # export NVM_DIR="$HOME/.nvm"
. "$brew_prefix/opt/nvm/nvm.sh" # . "$brew_prefix/opt/nvm/nvm.sh"
# Vagrant configuration. # Vagrant configuration.
# export VAGRANT_DEFAULT_PROVIDER='virtualbox' # export VAGRANT_DEFAULT_PROVIDER='virtualbox'
@@ -106,3 +103,18 @@ prod_command_trap () {
} }
shopt -s extdebug shopt -s extdebug
trap prod_command_trap DEBUG trap prod_command_trap DEBUG
function blt() {
if [ "`git rev-parse --show-cdup 2> /dev/null`" != "" ]; then
GIT_ROOT=$(git rev-parse --show-cdup)
else
GIT_ROOT="."
fi
if [ -f "$GIT_ROOT/vendor/bin/blt" ]; then
$GIT_ROOT/vendor/bin/blt "$@"
else
echo "You must run this command from within a BLT-generated project repository."
exit 1
fi
}