diff options
author | Matt Singleton <matthew.j.singleton@gmail.com> | 2011-01-01 20:38:26 -0500 |
---|---|---|
committer | Matt Singleton <matthew.j.singleton@gmail.com> | 2011-01-01 20:38:26 -0500 |
commit | 70a68caaed8ad165c18fa5022f6d69002b871528 (patch) | |
tree | 01ee39e030aa5cffbc808bc0db49cae2ff38edad /oh-my-zsh/xcolour.zsh-theme | |
parent | a924689c38482b652c72977aae1e532f3cc462ba (diff) |
adding custom config files for oh-my-zsh
Diffstat (limited to 'oh-my-zsh/xcolour.zsh-theme')
-rw-r--r-- | oh-my-zsh/xcolour.zsh-theme | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/oh-my-zsh/xcolour.zsh-theme b/oh-my-zsh/xcolour.zsh-theme new file mode 100644 index 0000000..13e36e3 --- /dev/null +++ b/oh-my-zsh/xcolour.zsh-theme @@ -0,0 +1,21 @@ +# Matt Singleton's oh-my-zsh theme + +function prompt_char { + git branch >/dev/null 2>/dev/null && echo '±' && return + svn info >/dev/null 2>/dev/null && echo 'ϟ' && return + echo '$' +} + +PROMPT='%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[green]%}%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%} +$(git_prompt_info)$(svn_prompt_info)$(prompt_char) %{$reset_color%}' +RPROMPT='%D{%r}' + +ZSH_THEME_GIT_PROMPT_PREFIX="(" +ZSH_THEME_GIT_PROMPT_SUFFIX=") " +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}✘%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}✔%{$reset_color%}" + +ZSH_THEME_SVN_PROMPT_PREFIX="(" +ZSH_THEME_SVN_PROMPT_SUFFIX=") " +ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%}✘%{$reset_color%}" +ZSH_THEME_SVN_PROMPT_CLEAN="%{$fg[green]%}✔%{$reset_color%}" |