example mod

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-20 18:03:25 +03:00
1 parent 097443c2d7
commit 16a37b5c6d
9 files changed
+234

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/home/faumaray/Project/personal/ExampleMod" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/faumaray/Project/personal/ExampleMod")"
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/faumaray/Project/personal/ExampleMod" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/faumaray/Project/personal/ExampleMod/.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/faumaray/Project/personal/ExampleMod/.envrc" "/home/faumaray/Project/personal/ExampleMod/.direnv"/*.rc