lookbook/.direnv/bin/nix-direnv-reload
soup fc625fb9cf
Initial lookbook implementation
Pinterest-style visual bookmarking app with:
- URL metadata extraction (OG/Twitter meta, oEmbed fallback)
- Image caching in Postgres with 480px thumbnails
- Multi-tag filtering with Ctrl/Cmd for OR mode
- Fuzzy tag suggestions and inline tag editing
- Browser console auth() with first-use password setup
- Brutalist UI with Commit Mono font and Pico CSS
- Light/dark mode via browser preference
2026-01-16 21:14:23 -05:00

19 lines
713 B
Bash
Executable file

#!/usr/bin/env bash
set -e
if [[ ! -d "/home/soup/sx/lookbook" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/soup/sx/lookbook")"
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/soup/sx/lookbook" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/soup/sx/lookbook/.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/soup/sx/lookbook/.envrc" "/home/soup/sx/lookbook/.direnv"/*.rc