1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 06:37:11 +08:00

fix(lib): %-quote git prompt functions

This commit is contained in:
Marc Cornellà 2021-11-30 17:43:36 +01:00
parent e96b8bd523
commit 428f815169
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -29,7 +29,7 @@ function git_prompt_info() {
&& upstream=" -> ${upstream}"
fi
echo "${ZSH_THEME_GIT_PROMPT_PREFIX}${ref}${upstream}$(parse_git_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}"
echo "${ZSH_THEME_GIT_PROMPT_PREFIX}${ref:gs/%/%%}${upstream:gs/%/%%}$(parse_git_dirty)${ZSH_THEME_GIT_PROMPT_SUFFIX}"
}
# Checks if working tree is dirty