From bb8f661d097e11578f9ba373daa94edfccb8ab1f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 30 Jan 2026 04:34:11 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Optimize=20shell=20startup:=20run?= =?UTF-8?q?=20dotfiles=20git=20fetch=20in=20background?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backgrounds the git fetch operation in tools/update.sh to prevent blocking shell initialization. This improves login time significantly by decoupling the network operation from the startup check. Co-authored-by: kidchenko <5432753+kidchenko@users.noreply.github.com> --- tools/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/update.sh b/tools/update.sh index be99272..9d174f6 100755 --- a/tools/update.sh +++ b/tools/update.sh @@ -14,7 +14,7 @@ command -v chezmoi &>/dev/null || { say "chezmoi not installed"; exit 1; } [[ -d "$DOTFILES_DIR/.git" ]] || exit 0 # Check if remote has updates -git -C "$DOTFILES_DIR" fetch --quiet 2>/dev/null +git -C "$DOTFILES_DIR" fetch --quiet 2>/dev/null & LOCAL=$(git -C "$DOTFILES_DIR" rev-parse '@' 2>/dev/null) REMOTE=$(git -C "$DOTFILES_DIR" rev-parse '@{u}' 2>/dev/null)