workan on pyenvasaaaa

This commit is contained in:
2025-08-15 00:36:51 -06:00
parent 4fc319d7bc
commit cfe26d9946
3 changed files with 14 additions and 21 deletions
+8 -9
View File
@@ -1,20 +1,19 @@
#!/bin/bash
# usage
## curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/setup_git.sh | "$SHELL"
echo "Setting up Github"
echo "Enter Github Classic Token (https://github.com/settings/tokens)"
read GITHUB_TOKEN
read -p "Enter Github Classic Token (https://github.com/settings/tokens): " gh_token
echo "Enter Email Address"
read EMAIL_ADDRESS
read -p "Enter Email Address: " gh_email
echo "Enter Github Username"
read GITHUB_USERNAME
read -p "Enter Github Username: " gh_username
sudo apt update
sudo apt install git gh -y
echo "Saving Token to ~/.gh_token"
echo $GITHUB_TOKEN > ~/.gh_token
echo $gh_token > ~/.gh_token
chmod 600 ~/.gh_token
echo "Logging into Github"
@@ -22,7 +21,7 @@ gh auth login --with-token < ~/.gh_token
gh auth setup-git
echo "Configuring Git"
git config --global user.email "$EMAIL_ADDRESS"
git config --global user.name "$GITHUB_USERNAME"
git config --global user.email "$gh_email"
git config --global user.name "$gh_username"
echo "DONE WOOO :3~"