Skip to content

Commit 12ae0ec

Browse files
committed
fix(profiles): fix nvm shell detection
1 parent ea7370b commit 12ae0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiles/shared/shrc-setup-nvm

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || pr
33

44
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
55

6-
if [[ "${SHELL}" == *zsh ]]; then
6+
if [ "$(ps h -p $$ -o args='' | cut -f1 -d' ')" == zsh ]; then
77
autoload -U add-zsh-hook
88
load-nvmrc() {
99
local node_version="$(nvm version)"

0 commit comments

Comments
 (0)