diff --git a/functions/_tide_item_java.fish b/functions/_tide_item_java.fish index bd3a7d7..88d0ea6 100644 --- a/functions/_tide_item_java.fish +++ b/functions/_tide_item_java.fish @@ -1,3 +1,3 @@ function _tide_item_java - test -e pom.xml && _tide_print_item java $tide_java_icon' ' (java -version 2>&1 | string match -r "[\d.]+")[2] + test -e pom.xml && _tide_print_item java $tide_java_icon' ' (java -version &| string match -r "[\d.]+")[1] end