summaryrefslogtreecommitdiff
path: root/plugins/svn
diff options
context:
space:
mode:
authorAndrew Smith <asmith@bcm.com.au>2011-07-25 09:46:17 +1000
committerAndrew Smith <asmith@bcm.com.au>2011-07-25 09:46:17 +1000
commit3cb33fc254290a848a602af634cfa26179d630e5 (patch)
treec2f7a36fc6339a0dc80be55bd11fe78cc221b2a9 /plugins/svn
parent3350c2298f6e0b629c8efe9821262a093f975fd3 (diff)
downloadzsh-3cb33fc254290a848a602af634cfa26179d630e5.tar.gz
zsh-3cb33fc254290a848a602af634cfa26179d630e5.tar.bz2
zsh-3cb33fc254290a848a602af634cfa26179d630e5.zip
Replace a duplicated test to see if we're in an SVN folder with a call to the 'in_svn' function.
Diffstat (limited to 'plugins/svn')
-rw-r--r--plugins/svn/svn.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh
index 86050227d..77de27481 100644
--- a/plugins/svn/svn.plugin.zsh
+++ b/plugins/svn/svn.plugin.zsh
@@ -1,5 +1,5 @@
function svn_prompt_info {
- if [[ -d .svn ]]; then
+ if [ in_svn ]; then
echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX\
$ZSH_THEME_REPO_NAME_COLOR$(svn_get_repo_name)$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR$(svn_dirty)$ZSH_PROMPT_BASE_COLOR"
fi