From 8bc7e495af42c778143771179d23312f8ff7a3c8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 30 Aug 2025 22:19:33 +1000 Subject: dev: better direnv Override caelestia command with dev version instead of using ./run.sh Allows completions to work --- .envrc | 6 +++++- bin/caelestia | 7 +++++++ run.sh | 7 ------- 3 files changed, 12 insertions(+), 8 deletions(-) create mode 100755 bin/caelestia delete mode 100755 run.sh diff --git a/.envrc b/.envrc index 3550a30..612703d 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,5 @@ -use flake +if has nix; then + use flake +fi + +PATH_add bin diff --git a/bin/caelestia b/bin/caelestia new file mode 100755 index 0000000..9afa4f7 --- /dev/null +++ b/bin/caelestia @@ -0,0 +1,7 @@ +#!/usr/bin/env sh + +# Utility script for running caelestia + +cd "$(dirname $0)/../src" || exit + +python -m caelestia "$@" diff --git a/run.sh b/run.sh deleted file mode 100755 index aae070b..0000000 --- a/run.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env sh - -# Utility script for running caelestia - -cd "$(dirname $0)/src" || exit - -python -m caelestia "$@" -- cgit v1.2.3-freya