guix-dotfiles/home-config/fish/functions/_tide_item_crystal.fish

7 lines
202 B
Fish

function _tide_item_crystal
if path is $_tide_parent_dirs/shard.yml
crystal --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item crystal $tide_crystal_icon' ' $v
end
end