fix VCS function
This commit is contained in:
parent
7c27bac9f5
commit
1bd77c498b
1 changed files with 5 additions and 4 deletions
|
|
@ -620,8 +620,9 @@ _lp_dotmatrix_theme_prompt() {
|
||||||
dotmatrix_prompt+="${dotmatrix_sep}"
|
dotmatrix_prompt+="${dotmatrix_sep}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
__dotmatrix_prompt_vcs
|
if __dotmatrix_prompt_vcs; then
|
||||||
dotmatrix_prompt+="${_DOTMATRIX_VCS}"
|
dotmatrix_prompt+="${_DOTMATRIX_VCS}"
|
||||||
|
fi
|
||||||
|
|
||||||
if _lp_runtime_format ; then
|
if _lp_runtime_format ; then
|
||||||
__dotmatrix_make_sep_plug ${DOTMATRIX_COLOR_NOTE[@]+"${DOTMATRIX_COLOR_NOTE[@]}"}
|
__dotmatrix_make_sep_plug ${DOTMATRIX_COLOR_NOTE[@]+"${DOTMATRIX_COLOR_NOTE[@]}"}
|
||||||
|
|
@ -1091,10 +1092,10 @@ __dotmatrix_prompt_vcs() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi # stash
|
fi # stash
|
||||||
return 1
|
return 0
|
||||||
else
|
else
|
||||||
_DOTMATRIX_VCS=""
|
_DOTMATRIX_VCS=""
|
||||||
return 0
|
return 1
|
||||||
fi # find_vcs
|
fi # find_vcs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue