1 typeset -Ag abbreviations
9 'HL' ' --help |& less -r'
19 magic-abbrev-expand() {
21 LBUFFER=${LBUFFER%%(#m)[-_a-zA-Z0-9]#}
22 LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
26 no-magic-abbrev-expand() {
30 zle -N magic-abbrev-expand
31 zle -N no-magic-abbrev-expand
32 bindkey " " magic-abbrev-expand
33 bindkey "^x " no-magic-abbrev-expand
34 bindkey -M isearch " " self-insert