mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 9be4ccea7f into 0ebe35968c
This commit is contained in:
commit
ef61b68e33
2 changed files with 5 additions and 1 deletions
|
|
@ -1,6 +1,9 @@
|
|||
# get the node.js version
|
||||
function nvm_prompt_info() {
|
||||
[ -f "$HOME/.nvm/nvm.sh" ] || return
|
||||
if [[ "$(command -v nvm)" != "nvm" || -z $(echo $PATH | grep "$HOME/.nvm") ]];
|
||||
then return
|
||||
fi
|
||||
|
||||
local nvm_prompt
|
||||
nvm_prompt=$(node -v 2>/dev/null)
|
||||
[[ "${nvm_prompt}x" == "x" ]] && return
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
# The addition 'nvm install' attempts in ~/.profile
|
||||
|
||||
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
|
||||
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue