Custom Oh-my-zsh theme to support svn

  1. Find your theme file in ~/.oh-my-zsh/themes/, then edit it;

  2. Add local svn_info='$(svn_prompt_info)';

  3. Append %{$reset_color%}${svn_info} to Prompt variable;

  4. Add followings to END-OF-FILE.

1
2
3
4
ZSH_THEME_SVN_PROMPT_PREFIX="%{$fg_bold[blue]%}svn:("
ZSH_THEME_SVN_PROMPT_SUFFIX="%{$fg_bold[blue]%})"
ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%} ✘ %{$reset_color%}"
ZSH_THEME_SVN_PROMPT_CLEAN="%{$FG[040]%} ✔"

And you can refer the theme (awesomepanda)