mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
Added the node version.
This commit is contained in:
parent
f7af54cdf2
commit
ddef3a6584
1 changed files with 8 additions and 0 deletions
|
@ -310,6 +310,14 @@ prompt_longstatus() {
|
|||
[[ -n "$symbols" ]] && $1_prompt_segment $bg $DEFAULT_COLOR "$symbols"
|
||||
}
|
||||
|
||||
# Node version
|
||||
prompt_node_version() {
|
||||
local nvm_prompt=$(node -v 2>/dev/null)
|
||||
[[ -z "${nvm_prompt}" ]] && return
|
||||
|
||||
$1_prompt_segment green white ${nvm_prompt:1}
|
||||
}
|
||||
|
||||
# rbenv information
|
||||
prompt_rbenv() {
|
||||
if [[ -n "$RBENV_VERSION" ]]; then
|
||||
|
|
Loading…
Reference in a new issue