From 6c2745642466a007f4376306ea5d39d77f45bbf3 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 20 Feb 2024 17:22:53 +0100 Subject: [PATCH] fix: install chezmoi if necessary --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index bd7aa9d..d614811 100755 --- a/setup.sh +++ b/setup.sh @@ -4,6 +4,8 @@ export PATH=$PATH:$HOME/.local/bin curl -sS https://starship.rs/install.sh | sudo sh -s -- --yes +which chezmoi 2>&1 > /dev/null || sudo sh -c "$(curl -fsLS get.chezmoi.io)" -- -b /usr/local/bin + chezmoi init --apply https://code.icb4dc0.de/prskr/dotfiles.git if $(which dnf 2>&1 > /dev/null); then