Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
9b352030
Commit
9b352030
authored
Dec 19, 2014
by
Robby Russell
Browse files
Merge pull request #3409 from unixorn/prevent-variable-clobbering
Add quoting to nvm.sh
parents
9e794a5d
16d07683
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/nvm.zsh
View file @
9b352030
# get the node.js version
function
nvm_prompt_info
()
{
[
-f
$HOME
/.nvm/nvm.sh
]
||
return
[
-f
"
$HOME
/.nvm/nvm.sh
"
]
||
return
local
nvm_prompt
nvm_prompt
=
$(
node
-v
2>/dev/null
)
[[
"
${
nvm_prompt
}
x"
==
"x"
]]
&&
return
...
...
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