From 3568e58b679f667dfd71a2edba945c2f1849b502 Mon Sep 17 00:00:00 2001 From: Josh Leverette Date: Mon, 26 Oct 2020 15:53:29 -0400 Subject: [PATCH] Silence error that occurs when no global java version is set --- set-java-home.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set-java-home.fish b/set-java-home.fish index 83e36e4a..6df36c3e 100644 --- a/set-java-home.fish +++ b/set-java-home.fish @@ -1,5 +1,5 @@ function asdf_update_java_home --on-event fish_prompt - set --local java_path (asdf which java) + set --local java_path (asdf which java 2>/dev/null) if test -n "$java_path" set --local full_path (realpath "$java_path") set --local full_path_dir (dirname "$full_path")