summaryrefslogtreecommitdiff
path: root/home-config/fish/functions/_tide_item_node.fish
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/fish/functions/_tide_item_node.fish')
-rw-r--r--home-config/fish/functions/_tide_item_node.fish6
1 files changed, 6 insertions, 0 deletions
diff --git a/home-config/fish/functions/_tide_item_node.fish b/home-config/fish/functions/_tide_item_node.fish
new file mode 100644
index 0000000..fc57832
--- /dev/null
+++ b/home-config/fish/functions/_tide_item_node.fish
@@ -0,0 +1,6 @@
1function _tide_item_node
2 if path is $_tide_parent_dirs/package.json
3 node --version | string match -qr "v(?<v>.*)"
4 _tide_print_item node $tide_node_icon' ' $v
5 end
6end