mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-14 09:50:08 +00:00
6 lines
228 B
Bash
6 lines
228 B
Bash
# get the nvm-controlled node.js version
|
|
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}"
|
|
}
|