Start Refactoring to composable zsh config modules

This commit is contained in:
Marty Oehme 2019-02-18 17:55:05 +01:00
parent 764de81461
commit 71a7ca83c6
24 changed files with 643 additions and 296 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