fix shell hist arrow keys

Amolith created

Change summary

dot_config/zsh/init/atuin.zsh         | 7 -------
dot_config/zsh/private_dot_zshrc.tmpl | 5 +++--
2 files changed, 3 insertions(+), 9 deletions(-)

Detailed changes

dot_config/zsh/init/atuin.zsh 🔗

@@ -46,16 +46,9 @@ _atuin_search() {
     zle reset-prompt
 }
 
-_atuin_up_search() {
-    _atuin_search --shell-up-key-binding
-}
-
 add-zsh-hook preexec _atuin_preexec
 add-zsh-hook precmd _atuin_precmd
 
 zle -N _atuin_search_widget _atuin_search
-zle -N _atuin_up_search_widget _atuin_up_search
 
 bindkey '^r' _atuin_search_widget
-bindkey '^[[A' _atuin_up_search_widget
-bindkey '^[OA' _atuin_up_search_widget

dot_config/zsh/private_dot_zshrc.tmpl 🔗

@@ -207,8 +207,6 @@ function noti() {
 function zathura() { devour zathura "$1" }
 function inkscape() { devour inkscape "$1" }
 
-source "$XDG_CONFIG_HOME/zsh/funcs/transfer.sh"
-
 # Necessary for SSH & YubiKey
 export GPG_TTY="$TTY"
 export SSH_AUTH_SOCK="/run/user/1000/gnupg/S.gpg-agent.ssh"
@@ -234,6 +232,9 @@ export HISTFILE="$XDG_STATE_HOME"/zsh/history
 export HISTSIZE=1000000
 export SAVEHIST=1000000
 
+bindkey '^[[A' history-substring-search-up
+bindkey '^[[B' history-substring-search-down
+
 autoload -Uz compinit && compinit
 autoload -U +X bashcompinit && bashcompinit