Add Git configuration for Trude

This commit is contained in:
2025-03-18 22:48:49 +00:00
parent 0ae31648fb
commit 4caa29cfb0

View File

@@ -140,8 +140,13 @@ else
fi fi
fi fi
# Clone password-store # Trude-only settings
if [ "$USER" = "trude" ]; then if [ "$USER" = "trude" ]; then
git config --global commit.gpgsign true
git config --global user.name "TrudeEH"
git config --global user.email "ehtrude@gmail.com"
# Clone password-store
if [ ! -f "$HOME/.ssh/id_ed25519" ] || [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then if [ ! -f "$HOME/.ssh/id_ed25519" ] || [ ! -f "$HOME/.ssh/id_ed25519.pub" ]; then
printf "${RED}ED25519 key not found. Please add your ED25519 key pair for password-store.${NC}\n" printf "${RED}ED25519 key not found. Please add your ED25519 key pair for password-store.${NC}\n"
elif ! gpg --list-keys "ehtrude@gmail.com" >/dev/null 2>&1; then elif ! gpg --list-keys "ehtrude@gmail.com" >/dev/null 2>&1; then