From dd873f21a6b0b933436b0f9b5d62d68a8c2cd7e7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 7 Feb 2022 13:53:02 +0100 Subject: [PATCH] Silence string match --- functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index a85fe41..52ef9cd 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -50,7 +50,7 @@ function fish_prompt set_color green else if test "$CURRENT_IP" "=" "(:0)" set_color brgreen - else if string match --regex '\(.+\)' "$CURRENT_IP" + else if string match --regex --quiet '\(.+\)' "$CURRENT_IP" > /dev/null set_color cyan else set_color green