From d5bab7e1dbf61483d1f8b4a8d70a7c7b71b76717 Mon Sep 17 00:00:00 2001 From: Max Jacobson Date: Tue, 27 Oct 2020 04:03:51 -0400 Subject: [PATCH] Remove logs from automatic version switching in `--use-on-cd` (#289) --- src/shell/bash.rs | 2 -- src/shell/fish.rs | 2 -- src/shell/zsh.rs | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/shell/bash.rs b/src/shell/bash.rs index 3099bda..4ba5e43 100644 --- a/src/shell/bash.rs +++ b/src/shell/bash.rs @@ -25,10 +25,8 @@ impl Shell for Bash { cd "$@" if [[ -f .node-version && .node-version ]]; then - echo "fnm: Found .node-version" fnm use elif [[ -f .nvmrc && .nvmrc ]]; then - echo "fnm: Found .nvmrc" fnm use fi } diff --git a/src/shell/fish.rs b/src/shell/fish.rs index 5e3fec5..24886a0 100644 --- a/src/shell/fish.rs +++ b/src/shell/fish.rs @@ -24,10 +24,8 @@ impl Shell for Fish { function _fnm_autoload_hook --on-variable PWD --description 'Change Node version on directory change' status --is-command-substitution; and return if test -f .node-version - echo "fnm: Found .node-version" fnm use else if test -f .nvmrc - echo "fnm: Found .nvmrc" fnm use end end diff --git a/src/shell/zsh.rs b/src/shell/zsh.rs index 91c32d7..8a1b9bf 100644 --- a/src/shell/zsh.rs +++ b/src/shell/zsh.rs @@ -24,10 +24,8 @@ impl Shell for Zsh { autoload -U add-zsh-hook _fnm_autoload_hook () { if [[ -f .node-version && -r .node-version ]]; then - echo "fnm: Found .node-version" fnm use elif [[ -f .nvmrc && -r .nvmrc ]]; then - echo "fnm: Found .nvmrc" fnm use fi }