mirror of https://github.com/ohmyzsh/ohmyzsh.git
fix(lib): quote % in `nvm_prompt_info`
parent
304af0a577
commit
5b076eab9b
|
@ -2,5 +2,5 @@
|
||||||
function nvm_prompt_info() {
|
function nvm_prompt_info() {
|
||||||
which nvm &>/dev/null || return
|
which nvm &>/dev/null || return
|
||||||
local nvm_prompt=${$(nvm current)#v}
|
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}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue