修改zsh配置

This commit is contained in:
xinyz 2022-07-23 10:05:36 +08:00
parent 09eb18e3db
commit 308e46e575

View file

@ -71,3 +71,22 @@ export PROMPT='%F{blue}(%n@%m)%f %~ %(!.#.$) '
# +-----------------+ # +-----------------+
source $DOTFILES/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh source $DOTFILES/zsh/plugins/autosuggestions/zsh-autosuggestions.zsh
# Better searching in command mode
bindkey -M vicmd '?' history-incremental-search-backward
bindkey -M vicmd '/' history-incremental-search-forward
# Beginning search with arrow keys
bindkey "^[OA" history-beginning-search-backward
bindkey "^[OB" history-beginning-search-forward
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
bindkey -M vicmd "k" history-beginning-search-backward
bindkey -M vicmd "j" history-beginning-search-forward
# Make Vi mode transitions faster (KEYTIMEOUT is in hundredths of a second)
export KEYTIMEOUT=1
bindkey "^R" history-incremental-search-backward
bindkey "^S" history-incremental-search-forward
test -f $ZDOTDIR/zshrc.local && . $ZDOTDIR/zshrc.local