mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2026-10-02 07:46:01 +02: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
|
||||
if type nvm >/dev/null 2>&1; then
|
||||
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
|
||||
nvm_prompt="$(node --version)"
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user