From 22001a7b50996e447d955c3e623e27148e1c7126 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Sat, 23 May 2015 22:05:17 -0300 Subject: [PATCH] fix(scorphish): redirect Git stderr to /dev/null while Fix #454. Thanks @bucaran :+1: Signed-off-by: Pablo Santiago Blum de Aguiar --- themes/scorphish/fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/scorphish/fish_prompt.fish b/themes/scorphish/fish_prompt.fish index 3f8b166..892ed31 100644 --- a/themes/scorphish/fish_prompt.fish +++ b/themes/scorphish/fish_prompt.fish @@ -34,8 +34,8 @@ function _git_ahead_count -a remote -a branch_name end function _git_dirty_remotes -a remote_color -a ahead_color - set current_branch (git rev-parse --abbrev-ref HEAD) - set current_ref (git rev-parse HEAD) + set current_branch (command git rev-parse --abbrev-ref HEAD ^/dev/null) + set current_ref (command git rev-parse HEAD ^/dev/null) for remote in (git remote)