Created
June 22, 2011 01:41
-
-
Save JoeyButler/1039353 to your computer and use it in GitHub Desktop.
bash prompt with current rvm gemset & git branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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