Skip to content

Commit

Permalink
Redirect stderr output of rustc --version
Browse files Browse the repository at this point in the history
  • Loading branch information
arpandaze committed Sep 25, 2023
1 parent ecb00e2 commit cbb3730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/_tide_item_rustc.fish
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function _tide_item_rustc
if path is $_tide_parent_dirs/Cargo.toml
rustc --version | string match -qr "(?<v>[\d.]+)"
rustc --version 2>/dev/null | string match -qr "(?<v>[\d.]+)"
_tide_print_item rustc $tide_rustc_icon' ' $v
end
end

0 comments on commit cbb3730

Please sign in to comment.