mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-06 20:50:19 +00:00
feat(config): fish configs
This commit is contained in:
6
config/fish/functions/_tide_item_ruby.fish
Normal file
6
config/fish/functions/_tide_item_ruby.fish
Normal file
@@ -0,0 +1,6 @@
|
||||
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
|
||||
Reference in New Issue
Block a user