2025-01-15 22:39:37 +01:00
|
|
|
which nix-shell && test -z "$NIX_SHELL_XRSH" && {
|
2024-12-18 11:30:07 +00:00
|
|
|
|
2025-01-16 17:03:24 +01:00
|
|
|
export NIX_SHELL_XRSH=1
|
|
|
|
|
|
2024-12-18 19:20:24 +01:00
|
|
|
# automatically mirror main between forgejo<->codeberg
|
|
|
|
|
git(){
|
2024-12-18 11:30:07 +00:00
|
|
|
set -x
|
2024-12-18 19:20:24 +01:00
|
|
|
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
|
2024-12-18 11:30:07 +00:00
|
|
|
}
|
2024-12-18 19:20:24 +01:00
|
|
|
|
|
|
|
|
echo '[i] installing nix-shell' && nix-shell
|
|
|
|
|
|
2024-12-18 11:30:07 +00:00
|
|
|
}
|
2025-01-15 22:38:43 +01:00
|
|
|
|
|
|
|
|
test "$GITEA_ROOT_URL" = "https://forgejo.isvery.ninja/" && {
|
|
|
|
|
# on the website xrsh.isvery.ninja
|
2025-01-23 15:43:18 +01:00
|
|
|
echo hello website deployment
|
2025-01-15 22:38:43 +01:00
|
|
|
}
|