mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-16 02:27:03 +01:00
change method that tell if cwd is a working copy
tell if cwd is a working copy according to 'svn status', not to '.svn'
This commit is contained in:
parent
b7f617bf8d
commit
0220b028f9
1 changed files with 3 additions and 2 deletions
|
|
@ -13,9 +13,10 @@ $ZSH_THEME_REPO_NAME_COLOR$_DISPLAY$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_S
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function in_svn() {
|
function in_svn() {
|
||||||
if [[ -d .svn ]]; then
|
is_svn=0
|
||||||
|
svn status 2>&1 1>/dev/null | grep -c '.*' | read is_svn
|
||||||
|
if [ "x$is_svn" = "x0" ]; then
|
||||||
echo 1
|
echo 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue