mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Add C-p and C-n to zsh (forward-backward)
This commit is contained in:
parent
b4a99c6090
commit
4469e7c8ff
|
@ -26,6 +26,8 @@ in
|
||||||
%F{green}→%f "
|
%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"
|
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='$ '
|
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
|
||||||
|
bindkey '^P' history-beginning-search-backward
|
||||||
|
bindkey '^N' history-beginning-search-forward
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue