diff options
| author | alex <[email protected]> | 2026-10-19 18:23:13 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-10-19 18:23:13 +0200 |
| commit | 1f569181f9a9a533015c32136ecef77eaa6e75c4 (patch) | |
| tree | bb1438d25dce0d6096eed27edad1aca2a44a66b2 /.direnv/bin/nix-direnv-reload | |
| parent | a5ae904a8b3a8f0f02889942b4ee81e85bd271d2 (diff) | |
| download | godot-testing-1f569181f9a9a533015c32136ecef77eaa6e75c4.tar.xz godot-testing-1f569181f9a9a533015c32136ecef77eaa6e75c4.zip | |
mob spwaning, corridors, node -v 22
Diffstat (limited to '.direnv/bin/nix-direnv-reload')
| -rwxr-xr-x | .direnv/bin/nix-direnv-reload | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.direnv/bin/nix-direnv-reload b/.direnv/bin/nix-direnv-reload new file mode 100755 index 0000000..984dbfb --- /dev/null +++ b/.direnv/bin/nix-direnv-reload @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +set -e +if [[ ! -d "/home/dia/programming/godot-testing" ]]; then + echo "Cannot find source directory; Did you move it?" + echo "(Looking for "/home/dia/programming/godot-testing")" + echo 'Cannot force reload with this script - use "direnv reload" manually and then try again' + exit 1 +fi + +# rebuild the cache forcefully +_nix_direnv_force_reload=1 direnv exec "/home/dia/programming/godot-testing" true + +# Update the mtime for .envrc. +# This will cause direnv to reload again - but without re-building. +touch "/home/dia/programming/godot-testing/.envrc" + +# Also update the timestamp of whatever profile_rc we have. +# This makes sure that we know we are up to date. +touch -r "/home/dia/programming/godot-testing/.envrc" "/home/dia/programming/godot-testing/.direnv"/*.rc |
