mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Quote path in case $HOME has a space in it.
I've seen stranger things on OS X, unfortunately. This reverts commit 1f5cecee4768be192e439a72a873a6cfe8720927.
This commit is contained in:
parent
0a96bb1577
commit
16d0768305
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# get the node.js version
|
# get the node.js version
|
||||||
function nvm_prompt_info() {
|
function nvm_prompt_info() {
|
||||||
[ -f $HOME/.nvm/nvm.sh ] || return
|
[ -f "$HOME/.nvm/nvm.sh" ] || return
|
||||||
local nvm_prompt
|
local nvm_prompt
|
||||||
nvm_prompt=$(node -v 2>/dev/null)
|
nvm_prompt=$(node -v 2>/dev/null)
|
||||||
[[ "${nvm_prompt}x" == "x" ]] && return
|
[[ "${nvm_prompt}x" == "x" ]] && return
|
||||||
|
|
Loading…
Reference in a new issue