Skip to content

Instantly share code, notes, and snippets.

@psql
Created January 15, 2013 04:06
Show Gist options
  • Save psql/4535954 to your computer and use it in GitHub Desktop.
Save psql/4535954 to your computer and use it in GitHub Desktop.
My bash profile
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOUR="\[\033[0m\]"
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOUR="\[\033[0m\]"
PS1="$GREEN\u$NO_COLOUR:\w$YELLOW\$(parse_git_branch)$NO_COLOUR\$ "
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# make ls colorful
export CLICOLOR=1
# grep hilight matches
export GREP_OPTIONS='--color=auto'
##
# Your previous /Users/Pasquale/.bash_profile file was backed up as /Users/Pasquale/.bash_profile.macports-saved_2012-08-15_at_12:26:55
##
# MacPorts Installer addition on 2012-08-15_at_12:26:55: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
export PATH="${PATH}:/usr/local/bin/gitpath/bin/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment