From 4469e7c8ff42927f3896788aa2ca6d9c5da795ab Mon Sep 17 00:00:00 2001 From: Emmet Date: Mon, 21 Oct 2024 21:42:54 -0500 Subject: [PATCH] Add C-p and C-n to zsh (forward-backward) --- user/shell/sh.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/shell/sh.nix b/user/shell/sh.nix index 4606c86..b612bab 100644 --- a/user/shell/sh.nix +++ b/user/shell/sh.nix @@ -26,6 +26,8 @@ in %F{green}→%f " RPROMPT="%F{red}▂%f%F{yellow}▄%f%F{green}▆%f%F{cyan}█%f%F{blue}▆%f%F{magenta}▄%f%F{white}▂%f" [ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' + bindkey '^P' history-beginning-search-backward + bindkey '^N' history-beginning-search-forward ''; };