Commit 28ed9018 authored by Stephen M. Coakley's avatar Stephen M. Coakley Committed by GitHub

Merge pull request #3 from bobthecow/fish-three

Make stderr redirection compatible with Fish 3.0.
parents 39183771 c584638e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# set -g theme_display_git_untracked no # set -g theme_display_git_untracked no
function _git_branch_name 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 end
function _is_git_dirty function _is_git_dirty
...@@ -13,7 +13,7 @@ function _is_git_dirty ...@@ -13,7 +13,7 @@ function _is_git_dirty
if [ "$theme_display_git_untracked" = 'no' -o "$show_untracked" = 'false' ] if [ "$theme_display_git_untracked" = 'no' -o "$show_untracked" = 'false' ]
set untracked '--untracked-files=no' set untracked '--untracked-files=no'
end end
echo (command git status -s --ignore-submodules=dirty $untracked ^/dev/null) echo (command git status -s --ignore-submodules=dirty $untracked 2> /dev/null)
end end
function fish_prompt function fish_prompt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment