mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Ask for identification as early as possible
This commit is contained in:
7
install/2-identification.sh
Normal file
7
install/2-identification.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Need gum to query for input
|
||||||
|
yay -S --noconfirm --needed gum
|
||||||
|
|
||||||
|
# Configure identification
|
||||||
|
echo "Enter identification for git and autocomplete..."
|
||||||
|
export OMAKUB_USER_NAME=$(gum input --placeholder "Enter full name" --prompt "Name> ")
|
||||||
|
export OMAKUB_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ")
|
@ -23,11 +23,6 @@ git config --global alias.ci commit
|
|||||||
git config --global alias.st status
|
git config --global alias.st status
|
||||||
git config --global pull.rebase true
|
git config --global pull.rebase true
|
||||||
|
|
||||||
# Configure identification
|
|
||||||
echo "Enter identification for git and autocomplete..."
|
|
||||||
export OMAKUB_USER_NAME=$(gum input --placeholder "Enter full name" --prompt "Name> ")
|
|
||||||
export OMAKUB_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ")
|
|
||||||
|
|
||||||
# Set identification from install inputs
|
# Set identification from install inputs
|
||||||
if [[ -n "${OMAKUB_USER_NAME//[[:space:]]/}" ]]; then
|
if [[ -n "${OMAKUB_USER_NAME//[[:space:]]/}" ]]; then
|
||||||
git config --global user.name "$OMAKUB_USER_NAME"
|
git config --global user.name "$OMAKUB_USER_NAME"
|
Reference in New Issue
Block a user