mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 23:00:30 +08:00
fix(lib): quote % in nvm_prompt_info
This commit is contained in:
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
Block a user