mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 01:17:24 +08:00
Compare commits
No commits in common. "53cbd658f5ae6874af0d804cee6748dfba69e786" and "568a977d2076b4210a9a925c53abcf0a831e4003" have entirely different histories.
53cbd658f5
...
568a977d20
@ -1,9 +1,5 @@
|
||||
globalias() {
|
||||
# Get last word to the left of the cursor:
|
||||
# (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 [[ $GLOBALIAS_FILTER_VALUES[(Ie)$word] -eq 0 ]]; then
|
||||
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$LBUFFER] -eq 0 ]]; then
|
||||
zle _expand_alias
|
||||
zle expand-word
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user