2025-05-17 18:33:56 -04:00
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
install_git_filters:
|
2025-05-19 17:31:59 -04:00
|
|
|
@git config filter.ageEncrypt.clean "age -a -R key.pub"
|
|
|
|
@git config filter.ageEncrypt.smudge "age -d -i key.txt"
|
|
|
|
@git config filter.setHostname.clean 'sed -e "s/$(hostname)/<<hostname>>/g"'
|
|
|
|
@git config filter.setHostname.smudge 'sed -e "s/<<hostname>>/$(hostname)/g"'
|
2025-05-17 18:33:56 -04:00
|
|
|
|
2025-05-19 21:01:43 -04:00
|
|
|
re_checkout_git:
|
|
|
|
@git checkout -f
|
|
|
|
|
2025-05-17 18:33:56 -04:00
|
|
|
unlock_key:
|
|
|
|
@[ -f key.txt ] || age -d -o key.txt key.txt.age
|
|
|
|
|
2025-05-19 21:01:43 -04:00
|
|
|
setup:
|
2025-05-17 18:33:56 -04:00
|
|
|
just unlock_key
|
|
|
|
just install_git_filters
|
2025-05-19 21:01:43 -04:00
|
|
|
just re_checkout_git
|