mirror of
https://github.com/aljazceru/omakub.git
synced 2025-12-17 04:24:20 +01:00
Use a generic identification so we can use it for more than git
This commit is contained in:
@@ -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> ")
|
|
||||||
4
install/identification.sh
Normal file
4
install/identification.sh
Normal 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> ")
|
||||||
@@ -6,5 +6,5 @@ git config --global alias.st status
|
|||||||
git config --global pull.rebase true
|
git config --global pull.rebase true
|
||||||
|
|
||||||
# Set identification from install inputs
|
# Set identification from install inputs
|
||||||
git config --global user.name $OMAKUB_GIT_NAME
|
git config --global user.name $OMAKUB_USER_NAME
|
||||||
git config --global user.email $OMAKUB_GIT_EMAIL
|
git config --global user.email $OMAKUB_USER_EMAIL
|
||||||
|
|||||||
Reference in New Issue
Block a user