From 8954a4f8f8695cf40d04d1796e10279a2e5324e3 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:20:52 +0000 Subject: [PATCH] shell improvements --- shell.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 6f261ac..d3a8e28 100644 --- a/shell.nix +++ b/shell.nix @@ -10,15 +10,19 @@ pkgs.mkShell { shellHook = '' echo "Welcome to the Nix shell for AppDaemon development" - + cd /usr/src/app + echo "URL: $(git config --get remote.origin.url)" + echo "Branch: $(git rev-parse --abbrev-ref HEAD)" + echo "Hash: $(git rev-parse --short HEAD)" + alias build="uv run python -m build" alias dbuild="docker build -t acockburn/appdaemon:local-dev /usr/src/app" alias fbuild="build && dbuild" alias clean="cd /usr/src/app && rm -rf ./build ./dist" alias ad="python -m appdaemon" - cd /usr/src/app uv sync --all-extras --upgrade --inexact source .venv/bin/activate + echo -e "Built and activated virtual environment\n" ''; }