From 709100460d6774fc26454d8a9bf90764d1860724 Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 30 May 2023 08:12:19 +0300 Subject: [PATCH] checks for atuin --- run_onchange_before_install_main_deps.sh.tmpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/run_onchange_before_install_main_deps.sh.tmpl b/run_onchange_before_install_main_deps.sh.tmpl index defe3b0..ea9697f 100644 --- a/run_onchange_before_install_main_deps.sh.tmpl +++ b/run_onchange_before_install_main_deps.sh.tmpl @@ -129,8 +129,11 @@ sleep 3 {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} sudo apt install fish $ACT_PACKAGES -y nix-env -iA nixpkgs.neovim nixpkgs.jump - bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) - + if ! fish -c atuin &>/dev/null + then + bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh) + fi + {{ else if eq .chezmoi.os "darwin" -}} brew install fish neovim $ACT_PACKAGES atuin jump -y