Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
e75aa287
Unverified
Commit
e75aa287
authored
Oct 14, 2020
by
Patrick W. Healy
Committed by
GitHub
Oct 14, 2020
Browse files
globalias: expand filtering to anywhere in the command (#9338)
parent
568a977d
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/globalias/globalias.plugin.zsh
View file @
e75aa287
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment