Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
.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