07cee28e31753f8cf424e413aa5f9754720d367b

Author
Felipe Gallois <felipe@gallois.com.br>
Committer
Felipe Gallois <felipe@gallois.com.br>
Date

Message

added custom theme, based on eastwood

Diff

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