mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
nvm: split out $NVM_DIR and $NVM_INSTALL_DIR
This commit is contained in:
parent
6fd1013b0d
commit
7f4707874f
3 changed files with 18 additions and 11 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# get the nvm-controlled node.js version
|
||||
function nvm_prompt_info() {
|
||||
[[ -f "$NVM_DIR/nvm.sh" ]] || return
|
||||
local nvm_prompt
|
||||
which nvm &>/dev/null || return
|
||||
nvm_prompt=$(nvm current)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue