Use a generic identification so we can use it for more than git

This commit is contained in:
David Heinemeier Hansson
2025-05-18 13:45:53 +02:00
parent f9e676a867
commit a6769838b9
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +0,0 @@
echo "Enter git identification..."
SYSTEM_NAME=$(getent passwd "$USER" | cut -d ':' -f 5 | cut -d ',' -f 1)
export OMAKUB_GIT_NAME=$(gum input --placeholder "Enter full name" --value "$SYSTEM_NAME" --prompt "Name> ")
export OMAKUB_GIT_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ")

View File

@@ -0,0 +1,4 @@
echo "Enter identification for git and autocomplete..."
SYSTEM_NAME=$(getent passwd "$USER" | cut -d ':' -f 5 | cut -d ',' -f 1)
export OMAKUB_USER_NAME=$(gum input --placeholder "Enter full name" --value "$SYSTEM_NAME" --prompt "Name> ")
export OMAKUB_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ")

View File

@@ -6,5 +6,5 @@ git config --global alias.st status
git config --global pull.rebase true
# Set identification from install inputs
git config --global user.name $OMAKUB_GIT_NAME
git config --global user.email $OMAKUB_GIT_EMAIL
git config --global user.name $OMAKUB_USER_NAME
git config --global user.email $OMAKUB_USER_EMAIL