dotfiles/shells/zsh/lib/fish.zsh

15 lines
534 B
Bash

source $SHELL_FILES/lib/syntax-highlighting/zsh-syntax-highlighting.zsh
source $SHELL_FILES/lib/history-substring-search/zsh-history-substring-search.zsh
# bind UP and DOWN arrow keys
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# bind P and N for EMACS mode
bindkey -M emacs '^P' history-substring-search-up
bindkey -M emacs '^N' history-substring-search-down
# bind k and j for VI mode
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down