We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7370b commit 12ae0ecCopy full SHA for 12ae0ec
profiles/shared/shrc-setup-nvm
@@ -3,7 +3,7 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr
3
4
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
5
6
-if [[ "${SHELL}" == *zsh ]]; then
+if [ "$(ps h -p $$ -o args='' | cut -f1 -d' ')" == zsh ]; then
7
autoload -U add-zsh-hook
8
load-nvmrc() {
9
local node_version="$(nvm version)"
0 commit comments