dotfiles/fish/functions/_tide_item_node.fish
2023-11-20 11:21:08 -06:00

6 lines
190 B
Fish

function _tide_item_node
if path is $_tide_parent_dirs/package.json
node --version | string match -qr "v(?<v>.*)"
_tide_print_item node $tide_node_icon' ' $v
end
end