Skip to content

Commit

Permalink
Merge pull request #1 from bobthecow/fish-three
Browse files Browse the repository at this point in the history
Make stderr redirection compatible with Fish 3.0.
  • Loading branch information
bobthecow authored Jan 16, 2019
2 parents d7c1f59 + 2359849 commit c132486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fish_prompt.fish
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# * Git branch and dirty state (if inside a git repo)

function _git_branch_name
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
echo (command git symbolic-ref HEAD 2> /dev/null | sed -e 's|^refs/heads/||')
end

function _is_git_dirty
echo (command git status -s --ignore-submodules=dirty ^/dev/null)
echo (command git status -s --ignore-submodules=dirty 2> /dev/null)
end

function fish_prompt
Expand Down

0 comments on commit c132486

Please sign in to comment.