mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
use string matching in node item
This commit is contained in:
parent
cbdcf44c9c
commit
d7f5041617
@ -1,4 +1,6 @@
|
|||||||
function _tide_item_node
|
function _tide_item_node
|
||||||
path is $_tide_parent_dirs/package.json &&
|
if path is $_tide_parent_dirs/package.json
|
||||||
_tide_print_item node $tide_node_icon' ' (node --version | string trim --chars=v)
|
node --version | string match -qr "v(?<ver>.*)"
|
||||||
|
_tide_print_item node $tide_node_icon' ' $ver
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user