mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-16 19:50:22 +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
|
||||
path is $_tide_parent_dirs/package.json &&
|
||||
_tide_print_item node $tide_node_icon' ' (node --version | string trim --chars=v)
|
||||
if path is $_tide_parent_dirs/package.json
|
||||
node --version | string match -qr "v(?<ver>.*)"
|
||||
_tide_print_item node $tide_node_icon' ' $ver
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user