summaryrefslogtreecommitdiff
path: root/.config/fish/functions/_tide_item_node.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/functions/_tide_item_node.fish')
-rw-r--r--.config/fish/functions/_tide_item_node.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/fish/functions/_tide_item_node.fish b/.config/fish/functions/_tide_item_node.fish
index 90a929b0..05880510 100644
--- a/.config/fish/functions/_tide_item_node.fish
+++ b/.config/fish/functions/_tide_item_node.fish
@@ -1,3 +1,4 @@
function _tide_item_node
- test -e package.json && _tide_print_item node $tide_node_icon' ' (node --version | string trim --chars=v)
+ path is $_tide_parent_dirs/package.json &&
+ _tide_print_item node $tide_node_icon' ' (node --version | string trim --chars=v)
end