Skip to content

Commit 4469e7c

Browse files
committed
Add C-p and C-n to zsh (forward-backward)
1 parent b4a99c6 commit 4469e7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

user/shell/sh.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ in
2626
%F{green}→%f "
2727
RPROMPT="%F{red}▂%f%F{yellow}▄%f%F{green}▆%f%F{cyan}█%f%F{blue}▆%f%F{magenta}▄%f%F{white}▂%f"
2828
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
29+
bindkey '^P' history-beginning-search-backward
30+
bindkey '^N' history-beginning-search-forward
2931
'';
3032
};
3133

0 commit comments

Comments
 (0)