summaryrefslogtreecommitdiff
path: root/.config/fish/functions/_tide_item_go.fish
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-07-05 17:05:39 -0300
committerRoger Gonzalez <roger@rogs.me>2023-07-05 17:05:39 -0300
commit3913586f678437d6de80bc96c8eea0e1e69a51ac (patch)
tree1d15289894a456229dc7416863b1ad530f467c43 /.config/fish/functions/_tide_item_go.fish
parentac3630acff3a49da55913f4e66d0af4aacdebec8 (diff)
Updated tide
Diffstat (limited to '.config/fish/functions/_tide_item_go.fish')
-rw-r--r--.config/fish/functions/_tide_item_go.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/fish/functions/_tide_item_go.fish b/.config/fish/functions/_tide_item_go.fish
index 304acc52..7c5919f8 100644
--- a/.config/fish/functions/_tide_item_go.fish
+++ b/.config/fish/functions/_tide_item_go.fish
@@ -1,3 +1,4 @@
function _tide_item_go
- test -e go.mod && _tide_print_item go $tide_go_icon' ' (go version | string match -r "[\d.]+")
+ path is $_tide_parent_dirs/go.mod &&
+ _tide_print_item go $tide_go_icon' ' (go version | string match -r "[\d.]+")
end