Skip to content

Commit

Permalink
Remove usage of caret in redirection
Browse files Browse the repository at this point in the history
```
~/.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
```
  • Loading branch information
mrhooray authored and simnalamburt committed Feb 26, 2020
1 parent 932edf4 commit 8199916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit 8199916

Please sign in to comment.