Skip to content

Commit

Permalink
do not load node when in home folder
Browse files Browse the repository at this point in the history
Signed-off-by: ivan katliarchuk <ivan.katliarchuk@gmail.com>
  • Loading branch information
ivankatliarchuk committed Sep 3, 2023
1 parent 8c74e51 commit 2f8ec84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/functions/functions.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ load-tgswitch

# https://github.com/nvm-sh/nvm
load-nvmrc() {
if exists nvm; then
if exists nvm && [[ "$PWD" != "$HOME" ]]; then
local node_version="$(nvm version)"
local nvmrc_path="$(nvm_find_nvmrc)"
if [ -f .nvmrc ]; then
Expand Down

0 comments on commit 2f8ec84

Please sign in to comment.