mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2026-11-29 03:43:08 +01:00
hide Node version in prompt when nvm is installed and system node version is beeing used. (#314)
This commit is contained in:
1 parent
451708d91f
commit
d60f62c34b
1 file changed
+1
-1
@@ -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