This commit is contained in:
2f38b454 2026-05-18 10:08:38 +02:00 committed by GitHub
commit d0af46537b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,6 +3,10 @@ globalias() {
# (z) splits into words using shell parsing
# (A) makes it an array even if there's only one element
local word=${${(Az)LBUFFER}[-1]}
if [[ $word[1] == '\' ]]; then
zle self-insert
return
fi
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$word] -eq 0 ]]; then
zle _expand_alias
zle expand-word