diff --git a/zshrc b/zshrc index edec962..000a9e4 100644 --- a/zshrc +++ b/zshrc @@ -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='*?_-.[]~=&;!#$%^(){}<>'