aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-02-18 19:23:14 -0500
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-02-18 19:23:14 -0500
commit80c4389f22dd733a31faa6fcf0ed5b4662e9e3b2 (patch)
treebcecba7be9a51fe6344deb8c91cd3c9770363e2d
parent658a70c8316fdecc0047a78ca7515ea28ec7959c (diff)
fixing svn module
-rw-r--r--zsh/appearance.zsh2
-rw-r--r--zsh/svn.zsh10
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}) "
}