Skip to content

Commit

Permalink
Add helpful information for keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangrosshauser committed May 15, 2020
1 parent ee2c664 commit 2e4a5c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions zshrc
Expand Up @@ -83,6 +83,14 @@ source "$HOME/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
source "$HOME/.zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh"

# Configure keybindings

# Helpful information for keybindings:
#
# * Use `read` command in terminal to obtain key sequences.
# * List of zsh's standard widgets, i.e. commands that can be used with `bindkey`: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets
# * Multiple key sequences can be bound to the same command by simply adding another `bindkey` line with the same command but a different key sequence.
# * Table of keyboard shortcuts: https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts

bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down

Expand Down

0 comments on commit 2e4a5c6

Please sign in to comment.