1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 07:38:48 +08:00
ohmyzsh/lib/nvm.zsh
2022-01-03 13:50:50 +01:00

7 lines
236 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:gs/%/%%}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
}