Simplify zsh config file structure

This commit is contained in:
Marty Oehme 2019-02-24 12:34:40 +01:00
parent 7bdf7ab1cd
commit 71c5944bf8
19 changed files with 31 additions and 21 deletions

View file

@ -0,0 +1,14 @@
# Expand aliases inline - see http://blog.patshead.com/2012/11/automatically-expaning-zsh-global-aliases---simplified.html
globalias() {
if [[ $LBUFFER =~ ' [A-Z0-9]+$' ]]; then
zle _expand_alias
zle expand-word
fi
zle self-insert
}
zle -N globalias
bindkey " " globalias
bindkey "^ " magic-space # control-space to bypass completion
bindkey -M isearch " " magic-space # normal space during searches