Add blt command to bash profile, comment out nvm stuff.
This commit is contained in:
+17
-5
@@ -15,9 +15,6 @@ export LSCOLORS=ExFxCxDxBxegedabagacad
|
||||
# Custom $PATH with extra locations.
|
||||
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.
|
||||
if [ -f ~/.bash_aliases ]
|
||||
then
|
||||
@@ -71,8 +68,8 @@ fi
|
||||
export PATH="$brew_prefix/opt/php56/bin:$PATH"
|
||||
|
||||
# Use nvm.
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
. "$brew_prefix/opt/nvm/nvm.sh"
|
||||
# export NVM_DIR="$HOME/.nvm"
|
||||
# . "$brew_prefix/opt/nvm/nvm.sh"
|
||||
|
||||
# Vagrant configuration.
|
||||
# export VAGRANT_DEFAULT_PROVIDER='virtualbox'
|
||||
@@ -106,3 +103,18 @@ prod_command_trap () {
|
||||
}
|
||||
shopt -s extdebug
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user