Skip to content

Key bindings from Oh My Zsh exported as a standalone zsh plugin

License

Notifications You must be signed in to change notification settings

kytta/ohmyzsh-key-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
    run ls
  • Esc, then m
    copy previous word (helpful for file renaming)

Install

You don't need to do anything. These keybindings are included with Oh My Zsh.

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.

In your .zshrc:

antigen bundle NickKaramoff/ohmyzsh-key-bindings
zplug "NickKaramoff/ohmyzsh-key-bindings", use:"ohmyzsh-key-bindings.zsh"
zgen load "NickKaramoff/ohmyzsh-key-bindings"
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.

About

Key bindings from Oh My Zsh exported as a standalone zsh plugin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages