diff options
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/appearance.zsh | 2 | ||||
-rw-r--r-- | 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}) " } |