From 001261ba5cda3b447ebcc29fac70e83f09e2527c Mon Sep 17 00:00:00 2001 From: joelazar Date: Thu, 11 Jun 2026 11:14:10 +0200 Subject: [PATCH] :recycle: refactor ai-update with utility sourcing and confirmation --- private_dot_local/bin/executable_ai-update | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/private_dot_local/bin/executable_ai-update b/private_dot_local/bin/executable_ai-update index fa1968b2..27233a10 100644 --- a/private_dot_local/bin/executable_ai-update +++ b/private_dot_local/bin/executable_ai-update @@ -1,4 +1,8 @@ #!/bin/bash +SOURCE_DIR=$(chezmoi source-path) + +. "$SOURCE_DIR/scripts/utils_install" && + . "$SOURCE_DIR/scripts/utils" echo "🧑‍💻 Updating Claude Code" brew upgrade claude-code@latest @@ -16,8 +20,7 @@ echo "🥧 Update Pi extensions" "${CHEZMOI_SOURCE_DIR:-$HOME/.local/share/chezmoi}/scripts/pi-packages-update" echo -if command -v gcx >/dev/null 2>&1; then - echo "📊 Update gcx Agent Skills" +ask_for_confirmation "📊 Do you want to update gcx Agent Skills?" +if answer_is_yes; then gcx agent skills install --all --force - echo fi -- 2.51.2