Zsh history/bindkey tweaks

This commit is contained in:
Anthony Rose 2022-08-19 09:13:39 +01:00
parent 3d77c14121
commit fa989aa26b

View file

@ -146,8 +146,10 @@ then
elif [ -n "$ZSH_VERSION" ]
then
bindkey -e
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
fi
# Set the prompt for various shells. The prompt should look like "user@host$ "