mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 03:40:41 +01:00
hide Node version in prompt when nvm is installed and system node version is beeing used. (#314)
This commit is contained in:
committed by
Caio Gondim
parent
451708d91f
commit
d60f62c34b
@@ -589,7 +589,7 @@ prompt_nvm() {
|
|||||||
local nvm_prompt
|
local nvm_prompt
|
||||||
if type nvm >/dev/null 2>&1; then
|
if type nvm >/dev/null 2>&1; then
|
||||||
nvm_prompt=$(nvm current 2>/dev/null)
|
nvm_prompt=$(nvm current 2>/dev/null)
|
||||||
[[ "${nvm_prompt}x" == "x" ]] && return
|
[[ "${nvm_prompt}x" == "x" || "${nvm_prompt}" == "system" ]] && return
|
||||||
elif type node >/dev/null 2>&1; then
|
elif type node >/dev/null 2>&1; then
|
||||||
nvm_prompt="$(node --version)"
|
nvm_prompt="$(node --version)"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user