mirror of
https://git.dodsorf.as/Dandellion/dotfiles.git
synced 2024-12-22 07:17:28 +01:00
zsh: fix zsh history sharing and history search with arrow keys
This commit is contained in:
parent
aff7c0ef63
commit
71a4879d1d
@ -17,6 +17,7 @@ in
|
||||
history = {
|
||||
expireDuplicatesFirst = true;
|
||||
ignoreDups = true;
|
||||
share = false;
|
||||
};
|
||||
shellAliases = {
|
||||
mpvav1 = "mpv --vd-queue-enable=yes --ad-queue-enable=yes --vd-queue-max-bytes=4000MiB --vd-queue-max-samples=2000000 --vd-queue-max-secs=50";
|
||||
@ -25,6 +26,12 @@ in
|
||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||
source ${./p10k.zsh}
|
||||
|
||||
autoload -U history-search-end
|
||||
zle -N history-beginning-search-backward-end history-search-end
|
||||
zle -N history-beginning-search-forward-end history-search-end
|
||||
bindkey "^[[A" history-beginning-search-backward-end
|
||||
bindkey "^[[B" history-beginning-search-forward-end
|
||||
|
||||
ZLE_RPROMPT_INDENT=0
|
||||
|
||||
export MATRIXDEV_HOMESERVER="https://matrix.dodsorf.as"
|
||||
|
Loading…
Reference in New Issue
Block a user