From 00556734bc2942220a6c42a00eeee05fd349ca37 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 21 Jun 2015 18:33:08 +0200 Subject: git completion: Ignore stderr for all commands Might print unrelated crap if we try to complete while not in a git repository --- share/completions/git.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index a2122851..a787e23d 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -6,7 +6,7 @@ function __fish_git_branches end function __fish_git_tags - command git tag + command git tag ^/dev/null end function __fish_git_heads @@ -15,7 +15,7 @@ function __fish_git_heads end function __fish_git_remotes - command git remote + command git remote ^/dev/null end function __fish_git_modified_files @@ -89,14 +89,14 @@ end function __fish_git_complete_stashes set -l IFS ':' - command git stash list --format=%gd:%gs | while read -l name desc + command git stash list --format=%gd:%gs ^/dev/null | while read -l name desc echo $name\t$desc end end function __fish_git_aliases set -l IFS \n - command git config -z --get-regexp '^alias\.' | while read -lz key value + command git config -z --get-regexp '^alias\.' ^/dev/null | while read -lz key value begin set -l IFS "." echo -n $key | read -l _ name -- cgit v1.2.3