Skip to content

Instantly share code, notes, and snippets.

@baopham
Created February 23, 2012 20:35
Show Gist options
  • Save baopham/1894915 to your computer and use it in GitHub Desktop.
Save baopham/1894915 to your computer and use it in GitHub Desktop.
bash_profile
# bash prompt
if [ -n "$SSH_CONNECTION" ] ; then
export PS1="\[\033[G\]\[\033[0;32m\]\u@\h\[\033[0;32m\] \w\$(__git_ps1) \$\[\033[00m\] "
else
if [ "$USER" != "baopham" ] ; then
export PS1="\[\033[G\]\[\033[0;32m\]\u \w\$(__git_ps1) \$\[\033[00m\] "
else
export PS1="\[\033[G\]\[\033[0;32m\]\w\$(__git_ps1) \$\[\033[00m\] "
fi
fi
#iTerm tab title
export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"'
# Get the aliases and functions
source ~/.bashrc
# if [ -f `brew --prefix`/etc/bash_completion ]; then
# . `brew --prefix`/etc/bash_completion
# fi
if [ -s "/usr/local/Cellar/git/1.7.10/etc/bash_completion.d/git-completion.bash" ]; then
source "/usr/local/Cellar/git/1.7.10/etc/bash_completion.d/git-completion.bash"
fi
export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad
export LS_COLORS='no=00:fi=00:di=0;36:ln=01;36:pi=40;33:so=0;32:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=0;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:'
export TERM=xterm-color
export PATH=/usr/local/bin:$HOME/.rvm/bin:$HOME/mongodb/bin:$PATH
export GIT_EDITOR=/usr/bin/vim
export EDITOR=/usr/bin/vim
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
# Often used dir
export baopham=$HOME/Projects/baopham
# GistID: 1894915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment