From 1e3d26f744674eae8a0c4cd388b2ba1a6b59d021 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 8 May 2018 23:16:39 +0200 Subject: [PATCH] [git completions] Remove impossible error message We already read the rest into a "_" garbage variable. --- share/completions/git.fish | 3 --- 1 file changed, 3 deletions(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index c6d4d243f..d0593df70 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -270,9 +270,6 @@ end # but a command can be aliased multiple times) git config -z --get-regexp 'alias\..*' | while read -lz alias command _ # Git aliases can contain chars that variable names can't - escape them. - if test (count $command) -ne 1 - printf (_ "Warning: alias '%s' has more than one command: '%s'") $alias "$command" >&2 - end set alias (string replace 'alias.' '' -- $alias | string escape --style=var) set -g __fish_git_alias_$alias $command end