Breakup the omnibus config install

This commit is contained in:
David Heinemeier Hansson
2025-08-23 22:31:42 +02:00
parent e59a98fb0b
commit 76c94e2604
9 changed files with 54 additions and 45 deletions

18
install/config/git.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# Set common git aliases
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global pull.rebase true
git config --global init.defaultBranch master
# Set identification from install inputs
if [[ -n "${OMARCHY_USER_NAME//[[:space:]]/}" ]]; then
git config --global user.name "$OMARCHY_USER_NAME"
fi
if [[ -n "${OMARCHY_USER_EMAIL//[[:space:]]/}" ]]; then
git config --global user.email "$OMARCHY_USER_EMAIL"
fi