dotfiles/fish/functions/_tide_item_rustc.fish

7 lines
195 B
Fish
Raw Normal View History

2023-10-08 22:26:07 -05:00
function _tide_item_rustc
2023-11-20 11:20:55 -06:00
if path is $_tide_parent_dirs/Cargo.toml
rustc --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item rustc $tide_rustc_icon' ' $v
end
2023-10-08 22:26:07 -05:00
end