From 9512054979d0f26cfd66d7146988e2767371b18c Mon Sep 17 00:00:00 2001 From: Rui Hu Date: Wed, 26 Feb 2020 00:31:04 -0800 Subject: [PATCH] Remove usage of caret in redirection ``` ~/.config/fish/functions/fish_prompt.fish (line 162): Expected a string, but instead found a '&' git rev-parse --quiet --verify HEAD > /dev/null ^&1; or set empty 1 ``` --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index e41c5f6..c5c76e9 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -159,7 +159,7 @@ function prompt_git -d "Display the current git state" # Check if there's any commit in the repo set -l empty 0 - git rev-parse --quiet --verify HEAD > /dev/null ^&1; or set empty 1 + git rev-parse --quiet --verify HEAD > /dev/null 2>&1; or set empty 1 set -l target if [ $empty = 1 ]