From af32fd0799d4a986d2b60c6112cf201408493bc1 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 19 Sep 2022 15:08:08 -0500 Subject: [PATCH] disable atuin in tty --- lib/prompt.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/prompt.zsh b/lib/prompt.zsh index 718763d..07bec47 100755 --- a/lib/prompt.zsh +++ b/lib/prompt.zsh @@ -32,4 +32,6 @@ zstyle ':completion::complete:make:*:targets' call-command true is-executable fzf && source $DOTFILES_DIR/lib/fzf.zsh # atuin must be loaded after to override zsh's ctrl+R completion -is-executable atuin && eval "$(atuin init zsh)" +if [[ $(is-executable atuin) && ! $(is-tty) ]]; then + is-executable atuin && eval "$(atuin init zsh)" +fi