Permalink
Browse files

shuky dvir theme

  • Loading branch information...
1 parent 3629270 commit 8fb119d55d0e0bfa4ee9fee72f3cc1674ecd9944 Shuky Dvir committed Feb 6, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 themes/shukydvir.zsh-theme
View
@@ -0,0 +1,23 @@
+#RVM settings
+if [[ -s ~/.rvm/scripts/rvm ]] ; then
+ RPS1="%{$reset_color%}%{$fg[yellow]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
+else
+ if which rbenv &> /dev/null; then
+ RPS1="%{$reset_color%}%{$fg[yellow]%}\$(rbenv version | sed -e 's/ (set.*$//')%{$reset_color%} $EPS1"
+ fi
+fi
+
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[blue]%}("
+ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✗%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[cyan]%}√"
+
+#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
+git_custom_status() {
+ local cb=$(current_branch)
+ if [ -n "$cb" ]; then
+ echo "$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX$(parse_git_dirty)"
+ fi
+}
+
+PROMPT='%{$fg[green]%}[%~% ]$(git_custom_status)%{$reset_color%}%B$%b '

0 comments on commit 8fb119d

Please sign in to comment.