2015-09-10 10:10:18 +02:00
|
|
|
# get the nvm-controlled node.js version
|
2013-11-08 20:26:05 +01:00
|
|
|
function nvm_prompt_info() {
|
2015-09-10 10:10:18 +02:00
|
|
|
which nvm &>/dev/null || return
|
2020-10-09 16:12:03 +02:00
|
|
|
local nvm_prompt=${$(nvm current)#v}
|
2021-12-26 19:31:07 +01:00
|
|
|
echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${nvm_prompt:gs/%/%%}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
|
2013-11-08 20:26:05 +01:00
|
|
|
}
|