creationix/nvm — pull request #369 by dohse (2014-03-10 11:06:37+00:00)
Title: Support deduction of nvm directory in zsh

In zsh nvm fails to deduce nvm's directory from nvm.sh, because
`$BASH_SOURCE` is not present in zsh. Use nvm.sh paths if either
`$BASH_SOURCE` or `$0` is present.