From 081e14fd213b99f0a28c71e801bf5f60a843be75 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 13 Dec 2018 22:49:12 +0100 Subject: [PATCH] completions/git: Allow aliases with whitespace in the command Fixes #5412. --- share/completions/git.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 60822fe49..ca8f24f75 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -445,7 +445,7 @@ end # So instead, we store the aliases in global variables, named after the alias, containing the command. # This is because alias:command is an n:1 mapping (an alias can only have one corresponding command, # 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. set alias (string replace 'alias.' '' -- $alias | string escape --style=var) set -g __fish_git_alias_$alias $command