Skip to content

Instantly share code, notes, and snippets.

@timrwood
Created September 14, 2011 17:25
Show Gist options
  • Save timrwood/1217161 to your computer and use it in GitHub Desktop.
Save timrwood/1217161 to your computer and use it in GitHub Desktop.
timrwood bash_profile
# @@@@@@@ @@@@@@@ @@@@@@ @@@@@@@@@@ @@@@@@@ @@@@@@@
# @@! @@@ @@! @@@ @@! @@@ @@! @@! @@! @@! @@@ @!!
# @!@@!@! @!@!!@! @!@ !@! @!! !!@ @!@ @!@@!@! @!!
# !!: !!: :!! !!: !!! !!: !!: !!: !!:
# : : : : : :. : : : : :
RESET="\[\033[0;37;00m\]"
GREEN="\[\e[0;32m\]"
VIOLET="\[\e[0;35m\]"
CYAN="\[\e[0;36m\]"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="${CYAN}λ ${GREEN}\w ${VIOLET}\$(parse_git_branch)\n${CYAN}λ ${RESET}"
# @@@@@@@ @@@@@@ @@@@@@@ @@@ @@@ @@@@@@
# @@! @@@ @@! @@@ @!! @@! @@@ !@@
# @!@@!@! @!@!@!@! @!! @!@!@!@! !@@!!
# !!: !!: !!! !!: !!: !!! !:!
# : : : : : : : : ::.: :
PATH=$PATH:$HOME/bin # Add Local BIN to PATH for scripting
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
if [ -f ~/bin/git/git-completion.bash ]; then
. ~/bin/git/git-completion.bash
fi
# hub https://github.com/defunkt/hub
eval "$(hub alias -s)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment