diff options
author | Matt Singleton <matthew.j.singleton@gmail.com> | 2011-01-01 20:42:10 -0500 |
---|---|---|
committer | Matt Singleton <matthew.j.singleton@gmail.com> | 2011-01-01 20:42:10 -0500 |
commit | 68fb5580289de982a562e49795e3184607689768 (patch) | |
tree | ba8029e7829b9f2a6b8a7f60960f4cb84e41ee67 | |
parent | 70a68caaed8ad165c18fa5022f6d69002b871528 (diff) |
updating zshrc to use oh-my-zsh additions
-rw-r--r-- | zshrc | 31 |
1 files changed, 1 insertions, 30 deletions
@@ -3,7 +3,7 @@ export ZSH=$HOME/.oh-my-zsh # Set to the name theme to load. # Look in ~/.oh-my-zsh/themes/ -export ZSH_THEME="sporty_256" +export ZSH_THEME="xcolour" # Set to this to use case-sensitive completion export CASE_SENSITIVE="true" @@ -31,34 +31,5 @@ export PATH=$HOME/bin:$PATH export LSCOLORS="exgxbxdxcxegedxbxgxcxd" -function prompt_char { - git branch >/dev/null 2>/dev/null && echo '±' && return - svn info >/dev/null 2>/dev/null && echo 'ϟ' && return - echo '$' -} - -function svn_dirty { - if [[ -n $(svn status) ]]; then - echo "%{$fg[red]%}✘%{$reset_color%}" - else - echo "%{$fg[green]%}✔%{$reset_color%}" - fi -} - -function svn_prompt_info { - info=$(svn info 2>/dev/null) || return - rev=$(echo "$info" | grep Revision | sed 's/Revision: //') - echo "(r$rev$(svn_dirty)) " -} - -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%}" - export PAGER=most export EDITOR=vim |