dotfiles/zsh/.local/share/oh-my-zsh/lib/nvm.zsh

7 lines
236 B
Bash
Raw Normal View History

2024-06-19 00:06:56 +02:00
# 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}"
}