From 7367aefa941f312adb831ed3b51040a582cf9e2a Mon Sep 17 00:00:00 2001 From: eeemsi Date: Thu, 23 Nov 2023 20:40:12 +0100 Subject: [PATCH] feat (zshrc): include what has been written up to the cursor position while 'browsing' through history --- zshrc | 6 ++++++ 1 file changed, 6 insertions(+) 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='*?_-.[]~=&;!#$%^(){}<>'