mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-20 06:56:05 +02:00
31221: Handle zero defined aliases better
This commit is contained in:
parent
dd638aea93
commit
abb32da0e7
|
@ -9,6 +9,9 @@
|
|||
* 31175: Doc/Zsh/zle.yo: 31175: Add documentation for the new -i
|
||||
and -f options of vared
|
||||
|
||||
* 31221: Completion/Unix/Command/_git: Handle zero defined aliases
|
||||
better
|
||||
|
||||
2013-04-04 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 31203: Completion/Unix/Command/.distfiles,
|
||||
|
|
|
@ -4757,7 +4757,13 @@ __git_aliases () {
|
|||
|
||||
(( $+functions[__git_extract_aliases] )) ||
|
||||
__git_extract_aliases () {
|
||||
aliases=(${^${${(0)"$(_call_program aliases "git config -z --get-regexp '^alias.'")"}#alias.}/$'\n'/:alias for \'}\')
|
||||
local -a tmp
|
||||
tmp=(${${(0)"$(_call_program aliases "git config -z --get-regexp '^alias.'")"}#alias.})
|
||||
if (( ${#tmp} > 0 )); then
|
||||
aliases=(${^tmp/$'\n'/:alias for \'}\')
|
||||
else
|
||||
aliases=()
|
||||
fi
|
||||
}
|
||||
|
||||
(( $+functions[__git_date_formats] )) ||
|
||||
|
|
Loading…
Reference in New Issue