diff --git a/plugins/npm-path/npm-path.plugin.zsh b/plugins/npm-path/npm-path.plugin.zsh index 90047d784..1b74fb5e7 100644 --- a/plugins/npm-path/npm-path.plugin.zsh +++ b/plugins/npm-path/npm-path.plugin.zsh @@ -1,4 +1,4 @@ -zsh-node_modules-bin-update-path() { +zsh-npm-path() { if [[ ! -x $(which npm) ]]; then # there is no npm return @@ -12,4 +12,4 @@ zsh-node_modules-bin-update-path() { export PATH=$(npm-path) } -precmd_functions+="zsh-node_modules-bin-update-path" +precmd_functions+="zsh-npm-path"