Files
dotfiles/installer/git.sh
T
steveandgitadmin 02a5e0df28 init: new dotfile configuration
Remove all org files using a new script to more config over, The old org
file configuaration were great but required org. This new version only
requires the scripts that is included in the repo.

The configuration are all done but have not ported the theming system
yet.

Signed-off-by: Steve Beaulac <steve@sagacity.ca>
Change-Id: I14cd7fe058a71c8ba9d6d35397dc8d7e6a6a6964
2026-03-02 13:26:21 -05:00

19 lines
443 B
Bash
Executable File

#!/bin/sh -e
if [[ ! -x "$(command -v git)" ]]; then
paru -Sy --needed --noconfirm git
fi
${DOTFILE_DIR}/sync-config config/git
GIT_CONFIG="${HOME}/.config/git/local"
# Set identification from install inputs
if [[ -n "${SJB_USER_NAME//[[:space:]]/}" ]]; then
git config -f ${GIT_CONFIG} user.name "$SJB_USER_NAME"
fi
if [[ -n "${SJB_USER_EMAIL//[[:space:]]/}" ]]; then
git config -f ${GIT_CONFIG} user.email "$SJB_USER_EMAIL"
fi