Unverified Commit e75aa287 authored by Patrick W. Healy's avatar Patrick W. Healy Committed by GitHub
Browse files

globalias: expand filtering to anywhere in the command (#9338)

parent 568a977d
globalias() {
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$LBUFFER] -eq 0 ]]; then
# Get last word to the left of the cursor
local word=${${(A)=LBUFFER}[-1]}
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$word] -eq 0 ]]; then
zle _expand_alias
zle expand-word
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment