manjaroSetup/preScript.sh
2025-02-21 15:37:01 +01:00

38 lines
887 B
Bash

clear
echo '##############################'
echo '# #'
echo "# Nikhil's Manjaro Setup #"
echo '# #'
echo '##############################'
echo '# #'
echo "# PreScript #"
echo '# #'
echo '##############################'
sudo pacman-mirrors -f5
sudo pacman-db-upgrade && sync
sudo pacman -Syu
echo 'xclip required. Downloading now.'
sudo pacman -S xclip
echo 'Enter E-Mail adress'
read email
echo 'Enter user.name'
read name
echo 'Setting git global credentials:'
git config --global user.email "$email"
git config --global user.name "$name"
echo 'Done.'
echo 'Creating SSH-Key'
ssh-keygen -t rsa -b 4096 -C "$email"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
xclip -sel clip < ~/.ssh/id_rsa.pub
echo 'Done.'
echo 'Next step: Add key to remote git.'