feat (zshrc): include what has been written up to the cursor position while 'browsing' through history

This commit is contained in:
eeemsi 2023-11-23 20:40:12 +01:00
parent 43f7302dc6
commit 7367aefa94
1 changed files with 6 additions and 0 deletions

6
zshrc
View File

@ -7,6 +7,12 @@ fi
# sequences (default is 0.4 sec.)
KEYTIMEOUT=1
# Search backward in the history for a line beginning with the current line up to the cursor
bindkey '^P' history-beginning-search-backward
# Search forward in the history for a line beginning with the current line up to the cursor
bindkey '^N' history-beginning-search-forward
# List of non-alphanumeric characters considered part of a word
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'