fix(lib): quote % in nvm_prompt_info

This commit is contained in:
Marc Cornellà 2021-12-26 19:31:07 +01:00
parent 304af0a577
commit 5b076eab9b
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -2,5 +2,5 @@
function nvm_prompt_info() {
which nvm &>/dev/null || return
local nvm_prompt=${$(nvm current)#v}
echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${nvm_prompt}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${nvm_prompt:gs/%/%%}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
}