mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 03:01:15 -03:00
[git completions] Remove impossible error message
We already read the rest into a "_" garbage variable.
This commit is contained in:
@@ -270,9 +270,6 @@ end
|
|||||||
# but a command can be aliased multiple times)
|
# but a command can be aliased multiple times)
|
||||||
git config -z --get-regexp 'alias\..*' | while read -lz alias command _
|
git config -z --get-regexp 'alias\..*' | while read -lz alias command _
|
||||||
# Git aliases can contain chars that variable names can't - escape them.
|
# 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 alias (string replace 'alias.' '' -- $alias | string escape --style=var)
|
||||||
set -g __fish_git_alias_$alias $command
|
set -g __fish_git_alias_$alias $command
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user