Skip to content

Commit

Permalink
Remove deprecated operator in Fish 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
getkey committed Mar 1, 2020
1 parent 114ead5 commit 9f9a7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/.config/fish/functions/fish_right_prompt.fish
Expand Up @@ -15,7 +15,7 @@ end

function fish_right_prompt
if not set -q __git_cb
if test (git rev-parse --is-inside-work-tree 2> /dev/null ^&1 | tail -n 1) = 'true'
if test (git rev-parse --is-inside-work-tree 2> /dev/null 2>&1 | tail -n 1) = 'true'
set __git_cb (parse_git_dirty)'('(git branch --list | grep '\*' | sed 's/\*\ //')(parse_git_changes)')'(set_color normal)
else
set __git_cb ''
Expand Down

0 comments on commit 9f9a7a7

Please sign in to comment.