mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
[git completions] Remove impossible error message
We already read the rest into a "_" garbage variable.
This commit is contained in:
parent
183b7f7017
commit
1e3d26f744
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue