aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-06-21 18:33:08 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-10 15:22:16 +0200
commit00556734bc2942220a6c42a00eeee05fd349ca37 (patch)
tree97013a6bf806503f7a4eb94b03185af98af51998
parentb231ab7238023b030a78f0e49b3091d0f93b38fe (diff)
git completion: Ignore stderr for all commands
Might print unrelated crap if we try to complete while not in a git repository
-rw-r--r--share/completions/git.fish8
1 files 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