Add re-checkout and fix filter
This commit is contained in:
parent
682dceeb41
commit
ee0c087692
2 changed files with 6 additions and 2 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -3,4 +3,4 @@
|
||||||
**/.tabby-client/agent/config.toml filter=ageEncrypt
|
**/.tabby-client/agent/config.toml filter=ageEncrypt
|
||||||
gpg/.gnupg/private-keys-v1.d/* filter=ageEncrypt
|
gpg/.gnupg/private-keys-v1.d/* filter=ageEncrypt
|
||||||
msmtp/.config/msmtp/config filter=ageEncrypt
|
msmtp/.config/msmtp/config filter=ageEncrypt
|
||||||
emborg/.config/emborg/home-* filter=setHostname
|
emborg/.config/emborg/* filter=setHostname
|
||||||
|
|
6
justfile
6
justfile
|
@ -7,9 +7,13 @@ install_git_filters:
|
||||||
@git config filter.setHostname.clean 'sed -e "s/$(hostname)/<<hostname>>/g"'
|
@git config filter.setHostname.clean 'sed -e "s/$(hostname)/<<hostname>>/g"'
|
||||||
@git config filter.setHostname.smudge 'sed -e "s/<<hostname>>/$(hostname)/g"'
|
@git config filter.setHostname.smudge 'sed -e "s/<<hostname>>/$(hostname)/g"'
|
||||||
|
|
||||||
|
re_checkout_git:
|
||||||
|
@git checkout -f
|
||||||
|
|
||||||
unlock_key:
|
unlock_key:
|
||||||
@[ -f key.txt ] || age -d -o key.txt key.txt.age
|
@[ -f key.txt ] || age -d -o key.txt key.txt.age
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
just unlock_key
|
just unlock_key
|
||||||
just install_git_filters
|
just install_git_filters
|
||||||
|
just re_checkout_git
|
||||||
|
|
Loading…
Add table
Reference in a new issue