summaryrefslogtreecommitdiff
path: root/plugins/globalias/globalias.plugin.zsh
diff options
context:
space:
mode:
authorVectorW <15570764+VectorWpl@users.noreply.github.com>2020-10-11 21:23:21 +0200
committerGitHub <noreply@github.com>2020-10-11 21:23:21 +0200
commit82856bfbd86ac77f0f28ab741a399a04495ed3bc (patch)
treedeb70f321f4f2843c4b470fe0a163c06602b9f29 /plugins/globalias/globalias.plugin.zsh
parentfb80eb8e05e13cfb224114688fc7d20960e26b5f (diff)
downloadzsh-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.zsh6
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