mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 21:51:05 +01:00
specify globalias modes
This commit is contained in:
parent
798c38dd1a
commit
86126233bb
1 changed files with 8 additions and 5 deletions
|
@ -4,8 +4,11 @@ globalias() {
|
||||||
zle self-insert
|
zle self-insert
|
||||||
}
|
}
|
||||||
zle -N globalias
|
zle -N globalias
|
||||||
bindkey -e " " globalias
|
|
||||||
bindkey -v " " globalias
|
# space expands all global aliases
|
||||||
bindkey -e "^ " magic-space # control-space to bypass completion
|
bindkey -M emacs " " globalias
|
||||||
bindkey -v "^ " magic-space
|
bindkey -M viins " " globalias
|
||||||
bindkey -M isearch " " magic-space # normal space during searches
|
|
||||||
|
# control-space to make a normal space
|
||||||
|
bindkey -M emacs "^ " magic-space
|
||||||
|
bindkey -M viins "^ " magic-space
|
||||||
|
|
Loading…
Reference in a new issue