fix(lib): quote % in `git_remote_status`

pull/10569/head
Marc Cornellà 2021-12-15 13:03:16 +01:00
parent 93ec48fb0a
commit 304af0a577
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ function git_remote_status() {
fi
if [[ -n $ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_DETAILED ]]; then
git_remote_status="$ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_PREFIX$remote$git_remote_status_detailed$ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_SUFFIX"
git_remote_status="$ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_PREFIX${remote:gs/%/%%}$git_remote_status_detailed$ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_SUFFIX"
fi
echo $git_remote_status