Swithed from IlanCosman to plttn version of tide

This commit is contained in:
Ivan Golikov 2026-05-27 21:47:46 +02:00
parent 0ed893ecd0
commit 292c618236
39 changed files with 693 additions and 201 deletions

View file

@ -1,6 +1,10 @@
function _tide_item_rustc
if path is $_tide_parent_dirs/Cargo.toml
rustc --version | string match -qr "(?<v>[\d.]+)"
_tide_print_item rustc $tide_rustc_icon' ' $v
type -q rustc && set -f cmd 'rustc --version' ||
begin
type -q rustup && set -f cmd 'rustup show active-toolchain -v'
end &&
eval "$cmd" | string match -qr "(?<v>\d+\.\d+\.\d+)" &&
_tide_print_item rustc $tide_rustc_icon' ' $v
end
end