mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Changed determination nvm in system
This commit is contained in:
parent
9c08641d7c
commit
7923754249
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
# get the node.js version
|
# get the node.js version
|
||||||
function nvm_prompt_info() {
|
function nvm_prompt_info() {
|
||||||
[ -f "$HOME/.nvm/nvm.sh" ] || return
|
if [[ "$(command -v nvm)" != "nvm" || -z $(echo $PATH | grep "$HOME/.nvm") ]];
|
||||||
|
then return
|
||||||
|
fi
|
||||||
|
|
||||||
local nvm_prompt
|
local nvm_prompt
|
||||||
nvm_prompt=$(node -v 2>/dev/null)
|
nvm_prompt=$(node -v 2>/dev/null)
|
||||||
[[ "${nvm_prompt}x" == "x" ]] && return
|
[[ "${nvm_prompt}x" == "x" ]] && return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue