tide/functions/_tide_item_rustc.fish

7 lines
195 B
Fish
Raw Normal View History

2021-04-25 04:01:02 +03:00
function _tide_item_rustc
2023-07-07 07:32:51 +03:00
if path is $_tide_parent_dirs/Cargo.toml
2023-07-07 18:06:55 +03:00
rustc --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item rustc $tide_rustc_icon' ' $v
2023-07-07 07:32:51 +03:00
end
2021-04-25 04:01:02 +03:00
end