Added "sirup" theme.
parent
22d9179ff7
commit
b4257a46db
|
|
@ -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}\]$ '
|
||||
Loading…
Reference in New Issue