Skip to content

Instantly share code, notes, and snippets.

@pzula
Created October 29, 2013 02:16
Show Gist options
  • Save pzula/7208165 to your computer and use it in GitHub Desktop.
Save pzula/7208165 to your computer and use it in GitHub Desktop.
bash_profile
# show full path after user
# export PS1='\u@\H:\w$ '
# add git branch to your terminal & other fun stuff
export PS1="\u \[\033[33;1m\]\w\[\033[32m\]\$(parse_git_branch)\[\033[00m\] ✨ "
# open mou on command in Terminal
alias mou="open /Applications/Mou.app"
# make ls pretty
export CLICOLOR=1
# ls colors with light blue, yellow, green
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
# ls colors with pink, orange, yellow
# export LSCOLORS=Exfxcxdxbxegedabagacad
# deal with XCode's git version
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#Display ruby version with rvm.
#PS1="\$(~/.rvm/bin/rvm-prompt) $PS1"
# Use "e" and a folder/file to launch SublimeText
# alias e="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl $1"
# Enable git's tab-completion library
source /usr/local/etc/bash_completion.d/git-completion.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment