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