mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 15:05:27 +08:00
Revert "completions/git: Allow aliases with whitespace in the command"
This reverts commit 081e14fd213b99f0a28c71e801bf5f60a843be75, which was bogus.
This commit is contained in:
parent
081e14fd21
commit
e07b45f447
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user