Swithed from IlanCosman to plttn version of tide
This commit is contained in:
parent
0ed893ecd0
commit
292c618236
39 changed files with 693 additions and 201 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue