From 9ff7cd3f3c1445830895ca3b02a741a0e8692a5e Mon Sep 17 00:00:00 2001 From: Sean Patrick Hagen Date: Wed, 12 Oct 2022 14:05:37 -0700 Subject: [PATCH] Remove backslash to remove grep warning New in grep 3.8 apparently is this warning: `grep: warning: stray \ before white space`. Explanation: https://github.com/koalaman/shellcheck/issues/2573 --- 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 9c17c01..7e1161a 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -857,7 +857,7 @@ function __bobthefish_prompt_golang -S -a real_pwd -d 'Display current Go inform set -l d $real_pwd while not [ -z "$d" ] if [ -e $d/go.mod ] - grep "^go\ " "$d/go.mod" | read __ gomod_version + grep "^go " "$d/go.mod" | read __ gomod_version break end