From 3cabed88e283204572b8e643825848de257e1e80 Mon Sep 17 00:00:00 2001 From: emiliano Date: Wed, 3 Jan 2018 14:35:27 +0100 Subject: [PATCH] Add --no-color to more git invocations (#4636) This breaks when git has been set to always print in color. --- share/completions/git.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 6f3fc4411..47d2ac9e1 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -19,11 +19,11 @@ function __fish_git_recent_commits end function __fish_git_local_branches - command git branch | string trim -c ' *' + command git branch --no-color | string trim -c ' *' end function __fish_git_remote_branches - command git branch --remote | string trim -c ' *' + command git branch --no-color --remote | string trim -c ' *' end function __fish_git_branches