Only enable SSH signing on supported hosts
This commit is contained in:
parent
09e8c5c4ce
commit
d5da28d40f
@ -1,11 +1,11 @@
|
|||||||
|
[include]
|
||||||
|
path = ~/.config/git/features/enable-signing.gitconfig
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = ewpratten@gmail.com
|
email = ewpratten@gmail.com
|
||||||
name = Evan Pratten
|
name = Evan Pratten
|
||||||
signingkey = ~/.ssh/id_ed25519_sk_rk_yk20572395
|
signingkey = ~/.ssh/id_ed25519_sk_rk_yk20572395
|
||||||
|
|
||||||
[gpg]
|
|
||||||
format = ssh
|
|
||||||
|
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = master
|
defaultBranch = master
|
||||||
|
|
||||||
@ -18,10 +18,6 @@
|
|||||||
[alias]
|
[alias]
|
||||||
authors = shortlog --summary --numbered --email
|
authors = shortlog --summary --numbered --email
|
||||||
|
|
||||||
[gpg "ssh"]
|
|
||||||
allowedSignersFile = ~/.ssh/allowed_signers
|
|
||||||
defaultKeyCommand = ssh-add -L
|
|
||||||
|
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
|
6
configs/git/features/enable-signing.gitconfig
Normal file
6
configs/git/features/enable-signing.gitconfig
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[gpg]
|
||||||
|
format = ssh
|
||||||
|
|
||||||
|
[gpg "ssh"]
|
||||||
|
allowedSignersFile = ~/.ssh/allowed_signers
|
||||||
|
defaultKeyCommand = ssh-add -L
|
7
helpers/git-config-features.sh
Normal file
7
helpers/git-config-features.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ "$HOSTNAME" == "fedora" ]] || [[ "$HOSTNAME" == "ewpratten-laptop" ]]; then
|
||||||
|
mkdir -p $HOME/.config/git/features
|
||||||
|
ln -sf $EWCONFIG_ROOT/configs/git/features/enable-signing.gitconfig $HOME/.config/git/features/enable-signing.gitconfig
|
||||||
|
fi
|
@ -63,3 +63,4 @@
|
|||||||
- [chmod +x configs/scripts/fetch-steamdeck-screenshots, Making fetch-steamdeck-screenshots executable]
|
- [chmod +x configs/scripts/fetch-steamdeck-screenshots, Making fetch-steamdeck-screenshots executable]
|
||||||
- [sh ./helpers/configure-gnome.sh, Configuring GNOME]
|
- [sh ./helpers/configure-gnome.sh, Configuring GNOME]
|
||||||
- [termux-reload-settings || true, Trying to reload Termux]
|
- [termux-reload-settings || true, Trying to reload Termux]
|
||||||
|
- [bash ./helpers/git-config-features.sh, Setting up optional git-config features]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user