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