mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fixed bug where a directory under two kinds of SCM, would break the prompt.
This commit is contained in:
parent
b989ec489c
commit
2545e756a1
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ done
|
||||||
function get_scm_prompt () {
|
function get_scm_prompt () {
|
||||||
for scm in $scms; do
|
for scm in $scms; do
|
||||||
if [ $("scm_in_"$scm"_repo") ]; then
|
if [ $("scm_in_"$scm"_repo") ]; then
|
||||||
echo `"scm_"$scm"_prompt_info"`
|
echo -n `"scm_"$scm"_prompt_info"`
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue