Created
April 8, 2015 19:00
-
-
Save kflorence/f79cc8d737760a3b3420 to your computer and use it in GitHub Desktop.
.bash_profile Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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