mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-15 04:41:19 +02:00
Merge d7614987fd into 5667161d49
This commit is contained in:
commit
8ac0869bd6
1 changed files with 8 additions and 0 deletions
8
lib/node.zsh
Normal file
8
lib/node.zsh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# get the node.js version
|
||||||
|
function node_prompt_info() {
|
||||||
|
local node_prompt
|
||||||
|
node_prompt=$(node -v 2>/dev/null)
|
||||||
|
[[ "${node_prompt}x" == "x" ]] && return
|
||||||
|
node_prompt=${node_prompt:1}
|
||||||
|
echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${node_prompt}${ZSH_THEME_NVM_PROMPT_SUFFIX}"
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue