mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-16 19:56:17 +08:00
fix(git): replace deprecated syntax for percent substitution in prompt (#13705)
This commit is contained in:
parent
349b9e49ce
commit
88242d26e9
@ -36,7 +36,7 @@ function _omz_git_prompt_info() {
|
||||
&& upstream=" -> ${upstream}"
|
||||
fi
|
||||
|
||||
echo "${ZSH_THEME_GIT_PROMPT_PREFIX}${ref:gs/%/%%}${upstream:gs/%/%%}$(parse_git_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}"
|
||||
echo "${ZSH_THEME_GIT_PROMPT_PREFIX}${ref//\%/%%}${upstream//\%/%%}$(parse_git_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}"
|
||||
}
|
||||
|
||||
function _omz_git_prompt_status() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user