diff --git a/functions/_tide_item_node.fish b/functions/_tide_item_node.fish index 0588051..8f62e1b 100644 --- a/functions/_tide_item_node.fish +++ b/functions/_tide_item_node.fish @@ -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(?.*)" + _tide_print_item node $tide_node_icon' ' $ver + end end