Added "sirup" theme.

pull/8/head
Sirupsen 2010-10-10 20:05:03 +02:00
parent 22d9179ff7
commit b4257a46db
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# For unstaged(*) and staged(+) values next to branch name in __git_ps1
GIT_PS1_SHOWDIRTYSTATE="enabled"
function rvm_version_prompt {
local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
[ "$gemset" != "" ] && gemset="@$gemset"
local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}')
[ "$version" == "1.9.2" ] && version=""
local full="$version$gemset"
[ "$full" != "" ] && echo "$full"
}
# Check http://github.com/Sirupsen/dotfiles for screenshot
PS1='\[$blue\]\W/\[$bold_blue\]$(rvm_version_prompt)\[$bold_green\]$(__git_ps1 " (%s)") \[${normal}\]$ '