From cbb3730216f3cc322b4b3dc6f7268437ceaf037b Mon Sep 17 00:00:00 2001 From: Daze Date: Sat, 23 Sep 2023 08:51:56 +0545 Subject: [PATCH] Redirect stderr output of rustc --version --- functions/_tide_item_rustc.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/_tide_item_rustc.fish b/functions/_tide_item_rustc.fish index b46cd99c..52a90235 100644 --- a/functions/_tide_item_rustc.fish +++ b/functions/_tide_item_rustc.fish @@ -1,6 +1,6 @@ function _tide_item_rustc if path is $_tide_parent_dirs/Cargo.toml - rustc --version | string match -qr "(?[\d.]+)" + rustc --version 2>/dev/null | string match -qr "(?[\d.]+)" _tide_print_item rustc $tide_rustc_icon' ' $v end end