mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 12:03:48 +03:00
use string matching in java item
This commit is contained in:
parent
dc3b1377d1
commit
fb8e3bb6a3
@ -1,4 +1,6 @@
|
||||
function _tide_item_java
|
||||
path is $_tide_parent_dirs/pom.xml &&
|
||||
_tide_print_item java $tide_java_icon' ' (java -version &| string match -r "[\d.]+")[1]
|
||||
if path is $_tide_parent_dirs/pom.xml
|
||||
java -version &| string match -qr "(?<ver>[\d.]+)"
|
||||
_tide_print_item java "$tide_java_icon $ver"
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user