globalias: allow filtering values not to be expanded (#9331)

This commit is contained in:
VectorW 2020-10-11 21:23:21 +02:00 committed by GitHub
commit 82856bfbd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 3 deletions

View file

@ -1,6 +1,8 @@
globalias() {
zle _expand_alias
zle expand-word
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$LBUFFER] -eq 0 ]]; then
zle _expand_alias
zle expand-word
fi
zle self-insert
}
zle -N globalias