mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
globalias fix #4834
This commit is contained in:
parent
57fcee0f1c
commit
798c38dd1a
1 changed files with 11 additions and 0 deletions
11
plugins/globalias/globalias.plugin.zsh
Normal file
11
plugins/globalias/globalias.plugin.zsh
Normal file
|
@ -0,0 +1,11 @@
|
|||
globalias() {
|
||||
zle _expand_alias
|
||||
zle expand-word
|
||||
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
|
Loading…
Reference in a new issue