Skip to content

Commit

Permalink
Make which silent.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubin55 committed Dec 16, 2024
1 parent a9a806c commit ad94b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/activate_version_manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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)"
Expand Down

0 comments on commit ad94b13

Please sign in to comment.