Skip to content

Instantly share code, notes, and snippets.

@JoeyButler
Created June 22, 2011 01:41
Show Gist options
  • Save JoeyButler/1039353 to your computer and use it in GitHub Desktop.
Save JoeyButler/1039353 to your computer and use it in GitHub Desktop.
bash prompt with current rvm gemset & git branch
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
WHITE="\[\033[1;37m\]"
BLACK="\[\033[0;30m\]"
OFF="\[\033[0m\]"
# Download git-completion from https://github.com/rtomayko/dotfiles/blob/rtomayko/.bash_completion.d/git-completion.bash
source /usr/local/etc/bash_completion.d/git-completion.bash
export PS1="$RED\$(~/.rvm/bin/rvm-prompt) $GREEN\w$YELLOW\$(__git_ps1 "[%s]")$OFF \$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment