ohmyzsh-key-bindings
This repository exports key bindings of Oh My Zsh as a standalone zsh plugin that you can install using zplug, antigen/antibody or with no bundler at all.
Why? I don't want to use the bulky Oh My Zsh for only a few features.
Features
- PageUp / PageDown
navigate history up/down line-by-line - โ / โ
fuzzy find input line in history - Control+r
search history backwards incrementally - Home / End
go to beginning/end of input line - Control+โ / Control+โ
move cursor one word forward/backward - Shift+Tab
navigate completion menu backwards - Control+x, then Control+e
edit the currently input line in$EDITOR
- Esc, then w
erase from cursor to the beginning of the line - Esc, then l
runls
- Esc, then m
copy previous word (helpful for file renaming)
Install
Oh My Zsh
You don't need to do anything. These keybindings are included with Ohย Myย Zsh.
Antibody
In your .zshrc:
antibody bundle NickKaramoff/ohmyzsh-key-bindings
Or, if you use static loading, add NickKaramoff/ohmyzsh-key-bindings
to your
.txt-file with plugins.
Antigen
In your .zshrc:
antigen bundle NickKaramoff/ohmyzsh-key-bindings
zplug
zplug "NickKaramoff/ohmyzsh-key-bindings", use:"ohmyzsh-key-bindings.zsh"
zgen
zgen load "NickKaramoff/ohmyzsh-key-bindings"
zinit
zinit ice depth=1; zinit load "NickKaramoff/ohmyzsh-key-bindings"
Manual
git clone --depth=1 https://github.com/NickKaramoff/ohmyzsh-key-bindings.git ~/.ohmyzsh-key-bindings
echo 'source ~/ohmyzsh-key-bindings/ohmyzsh-key-bindings.zsh' >>! ~/.zshrc
License
This repository is licensed under the MIT License and uses code copied and/or derived from ohmyzsh/ohmyzsh, which is as well licensed under the MITย License.