diff --git a/install/git-identification.sh b/install/git-identification.sh deleted file mode 100644 index 5ea0a76..0000000 --- a/install/git-identification.sh +++ /dev/null @@ -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> ") diff --git a/install/identification.sh b/install/identification.sh new file mode 100644 index 0000000..598331c --- /dev/null +++ b/install/identification.sh @@ -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> ") diff --git a/install/terminal/set-git.sh b/install/terminal/set-git.sh index 0a949c8..728b7c7 100644 --- a/install/terminal/set-git.sh +++ b/install/terminal/set-git.sh @@ -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