Skip to content

Instantly share code, notes, and snippets.

@jthiller
Last active November 4, 2015 21:43
Show Gist options
  • Save jthiller/c523934f0dccc021f7cb to your computer and use it in GitHub Desktop.
Save jthiller/c523934f0dccc021f7cb to your computer and use it in GitHub Desktop.
My Ember development bash_profile
# if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
#colorize shell
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
#/colorize shell
export NVM_DIR="/Users/joey/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion #tab completion
#git helpers
function c { git checkout $@; }
function cb { git checkout -b $@; }
alias b="git branch"
alias s="git status"
alias d="git diff"
alias l="git log --oneline"
alias reset-ember="echo This will take a while... & rm -rf node_modules bower_components dist tmp && npm install && bower install"
function install-ember {
bold=$(tput bold)
normal=$(tput sgr0)
if [ "$1" != "" ]; then
echo -e "Installing, then running ${bold}npm run $1${normal}..."
echo "Running ${bold}npm install${normal}..."
npm install
echo "Running ${bold}bower install${normal}..."
bower install
echo "Running ${bold}npm run $1${normal}..."
npm run $1
else
echo -e "Installing, then running ${bold}ember server${normal}..."
echo "Running ${bold}npm install${normal}..."
npm install
echo "Running ${bold}bower install${normal}..."
bower install
echo "Running ${bold}ember server${normal}..."
ember server
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment