Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
585e7138
Unverified
Commit
585e7138
authored
Dec 06, 2022
by
Michał Regulski
Committed by
GitHub
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(nvm): omit message when silent-autoload is enabled (#11371)
parent
3a9322b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
nvm.plugin.zsh
plugins/nvm/nvm.plugin.zsh
+4
-1
No files found.
plugins/nvm/nvm.plugin.zsh
View file @
585e7138
...
@@ -65,7 +65,7 @@ if zstyle -t ':omz:plugins:nvm' autoload; then
...
@@ -65,7 +65,7 @@ if zstyle -t ':omz:plugins:nvm' autoload; then
local
node_version
=
"
$(
nvm version
)
"
local
node_version
=
"
$(
nvm version
)
"
local
nvmrc_path
=
"
$(
nvm_find_nvmrc
)
"
local
nvmrc_path
=
"
$(
nvm_find_nvmrc
)
"
local
nvm_silent
=
""
local
nvm_silent
=
""
zstyle
-t
':omz:plugins:nvm'
silent-autoload
&&
_
nvm_silent
=
"--silent"
zstyle
-t
':omz:plugins:nvm'
silent-autoload
&&
nvm_silent
=
"--silent"
if
[[
-n
"
$nvmrc_path
"
]]
;
then
if
[[
-n
"
$nvmrc_path
"
]]
;
then
local
nvmrc_node_version
=
$(
nvm version
$(
cat
"
$nvmrc_path
"
|
tr
-dc
'[:print:]'
))
local
nvmrc_node_version
=
$(
nvm version
$(
cat
"
$nvmrc_path
"
|
tr
-dc
'[:print:]'
))
...
@@ -76,7 +76,10 @@ if zstyle -t ':omz:plugins:nvm' autoload; then
...
@@ -76,7 +76,10 @@ if zstyle -t ':omz:plugins:nvm' autoload; then
nvm use
$nvm_silent
nvm use
$nvm_silent
fi
fi
elif
[[
"
$node_version
"
!=
"
$(
nvm version default
)
"
]]
;
then
elif
[[
"
$node_version
"
!=
"
$(
nvm version default
)
"
]]
;
then
if
[[
-z
$nvm_silent
]]
;
then
echo
"Reverting to nvm default version"
echo
"Reverting to nvm default version"
fi
nvm use default
$nvm_silent
nvm use default
$nvm_silent
fi
fi
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment