diff options
author | VectorW <15570764+VectorWpl@users.noreply.github.com> | 2020-10-11 21:23:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 21:23:21 +0200 |
commit | 82856bfbd86ac77f0f28ab741a399a04495ed3bc (patch) | |
tree | deb70f321f4f2843c4b470fe0a163c06602b9f29 /plugins/globalias/globalias.plugin.zsh | |
parent | fb80eb8e05e13cfb224114688fc7d20960e26b5f (diff) | |
download | zsh-82856bfbd86ac77f0f28ab741a399a04495ed3bc.tar.gz zsh-82856bfbd86ac77f0f28ab741a399a04495ed3bc.tar.bz2 zsh-82856bfbd86ac77f0f28ab741a399a04495ed3bc.zip |
globalias: allow filtering values not to be expanded (#9331)
Diffstat (limited to 'plugins/globalias/globalias.plugin.zsh')
-rw-r--r-- | plugins/globalias/globalias.plugin.zsh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/globalias/globalias.plugin.zsh b/plugins/globalias/globalias.plugin.zsh index 9602a9606..f8c07ce43 100644 --- a/plugins/globalias/globalias.plugin.zsh +++ b/plugins/globalias/globalias.plugin.zsh @@ -1,6 +1,8 @@ globalias() { - zle _expand_alias - zle expand-word + if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$LBUFFER] -eq 0 ]]; then + zle _expand_alias + zle expand-word + fi zle self-insert } zle -N globalias |