xrfragment/.env

25 lines
705 B
Bash
Raw Permalink Normal View History

2025-01-14 15:38:48 +01:00
which nix && test -z "$NIX_SHELL_XRF" && {
2025-01-14 15:36:36 +01:00
# automatically mirror main between forgejo<->codeberg
#git(){
# set -x
# test $1 = "push" && test $3 = main && mirror=1
# $(which git) "$@"
# test -n "$mirror" && {
# set -x
# shift ; shift # remove first to args
# $(which git) push codeberg "$@"
# }
# set +x
#}
echo '[i] installing nix-shell' && nix-shell
}
2025-01-14 15:44:23 +01:00
test "$GITEA_ROOT_URL" = "https://forgejo.isvery.ninja/" && {
2025-01-14 15:36:36 +01:00
# on the website xrfragment.org copy examples to root-dir
# (so https://xrfragment.org/index.glb can be requested remotely)
# because that really emphasizes a nice WebXR experience-at-website-root paradigm
2025-01-14 15:44:49 +01:00
cp -r example/assets/* .
2025-01-14 15:36:36 +01:00
}