mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
fix(gitfast): update alias config regexp to '^alias\.'
I have a custom alias-helper.* section in my config, and the old regexp
captured them too.
[1] 303ffaa3d4/.gitconfig (L9-37)
This commit is contained in:
parent
5c804257ce
commit
1d9fae02de
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ __git_zsh_cmd_common ()
|
||||||
__git_zsh_cmd_alias ()
|
__git_zsh_cmd_alias ()
|
||||||
{
|
{
|
||||||
local -a list
|
local -a list
|
||||||
list=(${${(0)"$(git config -z --get-regexp '^alias\.*')"}#alias.})
|
list=(${${(0)"$(git config -z --get-regexp '^alias\.')"}#alias.})
|
||||||
list=(${(f)"$(printf "%s:alias for '%s'\n" ${(f@)list})"})
|
list=(${(f)"$(printf "%s:alias for '%s'\n" ${(f@)list})"})
|
||||||
_describe -t alias-commands 'aliases' list && _ret=0
|
_describe -t alias-commands 'aliases' list && _ret=0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue