Skip to content

Instantly share code, notes, and snippets.

@kflorence
Created April 8, 2015 19:00
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 kflorence/f79cc8d737760a3b3420 to your computer and use it in GitHub Desktop.
Save kflorence/f79cc8d737760a3b3420 to your computer and use it in GitHub Desktop.
.bash_profile Mac OS X
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Nicer looking prompt with git branch in it
# https://github.com/mbadolato/iTerm2-Color-Schemes
export PS1="\[\033[36m\]\u\[\033[m\]:\[\033[33;1m\]\w\[\033[m\]\[\033[35;1m\]\$(parse_git_branch)\[\033[m\]\$ "
# ls colors
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
alias ll='ls -lha'
# Bash completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# NVM
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
# rbenv
eval "$(rbenv init -)"
# PATH
export PATH=$PATH:~/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment