From 0c9f488f56f3dacc4773614eccfe79976191e18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 12 Mar 2024 14:41:34 +0100 Subject: [PATCH] fix(atuin): init outside promptInit --- configs/zsh.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configs/zsh.nix b/configs/zsh.nix index 89ea294..46e2e54 100644 --- a/configs/zsh.nix +++ b/configs/zsh.nix @@ -56,6 +56,13 @@ autoload -U zmv run-help + # atuin distributed shell history + export ATUIN_NOBIND="true" # disable all keybdinings of atuin + eval "$(atuin init zsh)" + bindkey '^r' _atuin_search_widget # bind ctrl+r to atuin + # use zsh only session history + fc -p + fpath=(${zsh-completions}/src $fpath) ''; promptInit = with config.niveum; '' @@ -68,13 +75,6 @@ zstyle ':vcs_info:*' formats "%c%u%F{cyan}%b%f" zstyle ':vcs_info:*' actionformats "(%a) %c%u%F{cyan}%b%f" - # atuin distributed shell history - export ATUIN_NOBIND="true" # disable all keybdinings of atuin - eval "$(atuin init zsh)" - bindkey '^r' _atuin_search_widget # bind ctrl+r to atuin - # use zsh only session history - fc -p - precmd () { vcs_info if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] || [ -n "$SSH_CONNECTION" ]; then