1
0
Fork 0
fishdots/functions/_tide_item_ruby.fish

7 lines
223 B
Fish
Raw Permalink Normal View History

2024-06-28 12:48:25 +00:00
function _tide_item_ruby
if path is $_tide_parent_dirs/{*.gemspec,Gemfile,Rakefile,.ruby-version}
ruby --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item ruby $tide_ruby_icon' ' $v
end
end