nvm.zsh 228 B

123456
  1. # get the nvm-controlled node.js version
  2. function nvm_prompt_info() {
  3. which nvm &>/dev/null || return
  4. local nvm_prompt=${$(nvm current)#v}
  5. echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${nvm_prompt}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
  6. }