dotfiles/justfile

21 lines
573 B
Makefile
Raw Normal View History

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 diff.ageEncrypt.textconv "cat"
2025-05-19 17:31:59 -04:00
@git config filter.setHostname.clean 'sed -e "s/$(hostname)/<<hostname>>/g"'
@git config filter.setHostname.smudge 'sed -e "s/<<hostname>>/$(hostname)/g"'
2025-05-19 21:01:43 -04:00
re_checkout_git:
@git checkout -f
unlock_key:
@[ -f key.txt ] || age -d -o key.txt key.txt.age
2025-05-19 21:01:43 -04:00
setup:
just unlock_key
just install_git_filters
2025-05-19 21:01:43 -04:00
just re_checkout_git