From ad94b13012b9c14fa842c8a59376d1cf4651127c Mon Sep 17 00:00:00 2001 From: Rubin Simons Date: Mon, 16 Dec 2024 21:36:21 +0200 Subject: [PATCH] Make which silent. --- bin/activate_version_manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/activate_version_manager.sh b/bin/activate_version_manager.sh index 754ae450b..8aa685e1a 100755 --- a/bin/activate_version_manager.sh +++ b/bin/activate_version_manager.sh @@ -76,7 +76,7 @@ _try_activating_asdf() { } _try_activating_rtx() { - if which rtx >/dev/null; then + if which rtx >/dev/null 2>&1; then echo >&2 "Found rtx. Activating..." eval "$(rtx activate bash)" eval "$(rtx env)" @@ -87,7 +87,7 @@ _try_activating_rtx() { } _try_activating_mise() { - if which mise >/dev/null; then + if which mise >/dev/null 2>&1; then echo >&2 "Found mise. Activating..." eval "$(mise activate bash)" eval "$(mise env)"