Browse Source

[Fix] `nvm debug` was printing a red herring error message in non-zsh.

Jordan Harband 9 years ago
parent
commit
6094dac1c1
  1. 1
      nvm.sh

1
nvm.sh

@ -1546,6 +1546,7 @@ nvm() {
"debug" ) "debug" )
local ZHS_HAS_SHWORDSPLIT_UNSET local ZHS_HAS_SHWORDSPLIT_UNSET
ZHS_HAS_SHWORDSPLIT_UNSET=1
if nvm_has "setopt"; then if nvm_has "setopt"; then
ZHS_HAS_SHWORDSPLIT_UNSET=$(setopt | command grep shwordsplit > /dev/null ; echo $?) ZHS_HAS_SHWORDSPLIT_UNSET=$(setopt | command grep shwordsplit > /dev/null ; echo $?)
setopt shwordsplit setopt shwordsplit

Loading…
Cancel
Save