From 7fcc9d2dadb04d8aa3ae0d2729fe2a56503f8095 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sun, 22 Mar 2026 02:05:49 -0500 Subject: [PATCH] node: Speedup 'nodenv' initialization by skipping rehashing. See: https://github.com/nodenv/nodenv#how-nodenv-hooks-into-your-shell --- modules/node/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/init.zsh b/modules/node/init.zsh index 0c27764..d23cef0 100644 --- a/modules/node/init.zsh +++ b/modules/node/init.zsh @@ -19,7 +19,7 @@ if (( $#local_nodenv_paths || $+commands[nodenv] )); then # Ensure manually installed nodenv is added to path when present. [[ -s $local_nodenv_paths[1] ]] && path=($local_nodenv_paths[1]:h $path) - eval "$(nodenv init - zsh)" + eval "$(nodenv init - --no-rehash zsh)" # Load manually installed nvm into the shell session. elif (( $#local_nvm_paths )); then