Start Refactoring to composable zsh config modules
This commit is contained in:
parent
764de81461
commit
71a7ca83c6
24 changed files with 643 additions and 296 deletions
14
.zsh.d/02-inline-glob-expansion
Normal file
14
.zsh.d/02-inline-glob-expansion
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue