81aa74b73cc221b5050e28ccf35d29317812edf9

Author
MasterLambaster <MasterLambaster@gmail.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Eastwood theme with optional RVM support

Diff

 1diff --git a/themes/eastwood.zsh-theme b/themes/eastwood.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..83664515adf78e8b3136f68e4a2e8bdd7c2f2d14
 4--- /dev/null
 5+++ b/themes/eastwood.zsh-theme
 6@@ -0,0 +1,19 @@
 7+#RVM settings
 8+if [[ -s ~/.rvm/scripts/rvm ]] ; then 
 9+  RPS1="%{$fg[yellow]%}rvm:%{$reset_color%}%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt)%{$reset_color%} $EPS1"
10+fi
11+
12+ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}["
13+ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
14+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
15+ZSH_THEME_GIT_PROMPT_CLEAN=""
16+
17+#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
18+git_custom_status() {
19+  local cb=$(current_branch)
20+  if [ -n "$cb" ]; then
21+    echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
22+  fi
23+}
24+
25+PROMPT='$(git_custom_status)%{$fg[cyan]%}[%~% ]%{$reset_color%}%B$%b '