mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 15:34:50 +08:00
Compare commits
2 Commits
568a977d20
...
53cbd658f5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53cbd658f5 | ||
|
|
e75aa2875e |
@ -1,5 +1,9 @@
|
||||
globalias() {
|
||||
if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$LBUFFER] -eq 0 ]]; then
|
||||
# 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
|
||||
zle _expand_alias
|
||||
zle expand-word
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user