Skip to content

Instantly share code, notes, and snippets.

@mikemellor11
Last active April 21, 2017 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemellor11/cffaf55605dffdd58900b55809a8e15f to your computer and use it in GitHub Desktop.
Save mikemellor11/cffaf55605dffdd58900b55809a8e15f to your computer and use it in GitHub Desktop.
command line styling
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ @\1/'
}
export bb="git@bitbucket.org:fishawackdigital"
export mb="git@mikemellor11:mikemellor11"
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\[\033[31m\]\$(parse_git_branch)\[\033[00m\]\$ "
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegbxabagacbx
alias ls='ls -l -GFh'
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
source ~/.profile
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
export NODE_ENV="development"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment