1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

specify globalias modes

This commit is contained in:
slavaGanzin 2016-10-04 12:21:18 +03:00
parent 798c38dd1a
commit 86126233bb

View file

@ -4,8 +4,11 @@ globalias() {
zle self-insert
}
zle -N globalias
bindkey -e " " globalias
bindkey -v " " globalias
bindkey -e "^ " magic-space # control-space to bypass completion
bindkey -v "^ " magic-space
bindkey -M isearch " " magic-space # normal space during searches
# space expands all global aliases
bindkey -M emacs " " globalias
bindkey -M viins " " globalias
# control-space to make a normal space
bindkey -M emacs "^ " magic-space
bindkey -M viins "^ " magic-space