From 80c4389f22dd733a31faa6fcf0ed5b4662e9e3b2 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Fri, 18 Feb 2011 19:23:14 -0500 Subject: fixing svn module --- zsh/appearance.zsh | 2 +- zsh/svn.zsh | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/zsh/appearance.zsh b/zsh/appearance.zsh index e8d6dff..408bc1b 100644 --- a/zsh/appearance.zsh +++ b/zsh/appearance.zsh @@ -38,4 +38,4 @@ function return_code { } PROMPT='%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[green]%}%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%} -$(return_code)$(git_prompt_info)$(prompt_char) %{$reset_color%}' +$(return_code)$(svn_prompt_info)$(git_prompt_info)$(prompt_char) %{$reset_color%}' diff --git a/zsh/svn.zsh b/zsh/svn.zsh index bbcc69f..f542374 100644 --- a/zsh/svn.zsh +++ b/zsh/svn.zsh @@ -1,15 +1,7 @@ #done -function svn_dirty { - if [[ -n $(svn status) ]]; then - echo "$ZSH_THEME_SVN_PROMPT_DIRTY" - else - echo "$ZSH_THEME_SVN_PROMPT_CLEAN" - fi -} - function svn_prompt_info { info=$(svn info 2>/dev/null) || return rev=$(echo "$info" | grep Revision | sed 's/Revision: //') - echo "${ZSH_THEME_GIT_PROMPT_PREFIX}r${rev}$(svn_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}" + echo "(r${rev}) " } -- cgit v1.2.3