mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
committed by
Caio Gondim
parent
d5b375063e
commit
5ca3596f58
@@ -10,7 +10,7 @@ simplicity, showing information only when it's relevant.
|
|||||||
It currently shows:
|
It currently shows:
|
||||||
- Current Python virtualenv; when using Pyenv and no active virtualenv shows the current Python version the shell uses
|
- Current Python virtualenv; when using Pyenv and no active virtualenv shows the current Python version the shell uses
|
||||||
- Current Ruby version using chruby; version and gemset when on RVM or Rbenv
|
- Current Ruby version using chruby; version and gemset when on RVM or Rbenv
|
||||||
- Current Node.js version, through NVM
|
- Current Node.js version, through NVM (if present) or Node.js
|
||||||
- Current Perl version using plenv
|
- Current Perl version using plenv
|
||||||
- Git status
|
- Git status
|
||||||
- Timestamp
|
- Timestamp
|
||||||
|
|||||||
@@ -539,11 +539,13 @@ prompt_nvm() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(type nvm >/dev/null 2>&1) || return
|
|
||||||
|
|
||||||
local nvm_prompt
|
local nvm_prompt
|
||||||
|
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" ]] && return
|
||||||
|
else
|
||||||
|
nvm_prompt="$(node --version)"
|
||||||
|
fi
|
||||||
nvm_prompt=${nvm_prompt}
|
nvm_prompt=${nvm_prompt}
|
||||||
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
|
prompt_segment $BULLETTRAIN_NVM_BG $BULLETTRAIN_NVM_FG $BULLETTRAIN_NVM_PREFIX$nvm_prompt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user