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