From 048def6a0b1e35c2c1e6207ecc0ba7e69bca7e5d Mon Sep 17 00:00:00 2001 From: myrmidex Date: Sun, 23 Aug 2026 00:08:44 +0200 Subject: [PATCH] Auto-start offer --- shell.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/shell.nix b/shell.nix index 910f056..2e35e43 100644 --- a/shell.nix +++ b/shell.nix @@ -132,5 +132,16 @@ pkgs.mkShell { echo " app Laravel + Vite http://localhost:8001" echo " db MariaDB localhost:3308" echo "" + + # =================== + # AUTO-START PROMPT + # =================== + if [ -f "$COMPOSE_FILE" ] && [ -t 0 ]; then + read -p "Start development containers? (y/N) " -n 1 -r + echo + if [[ $REPLY =~ ^[Yy]$ ]]; then + dev-up + fi + fi ''; }