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 = {
|
history = {
|
||||||
expireDuplicatesFirst = true;
|
expireDuplicatesFirst = true;
|
||||||
ignoreDups = true;
|
ignoreDups = true;
|
||||||
|
share = false;
|
||||||
};
|
};
|
||||||
shellAliases = {
|
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";
|
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 ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
source ${./p10k.zsh}
|
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
|
ZLE_RPROMPT_INDENT=0
|
||||||
|
|
||||||
export MATRIXDEV_HOMESERVER="https://matrix.dodsorf.as"
|
export MATRIXDEV_HOMESERVER="https://matrix.dodsorf.as"
|
||||||
|
|
Loading…
Reference in New Issue