diff --git a/fish_prompt.fish b/fish_prompt.fish index a032766..d8c5e89 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -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