fix: setup config and ssh key fix

main
CrimsonTome 2022-11-23 09:08:04 +00:00 committed by Rowan Clark
parent 71cda87810
commit ef1c5be4ca
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 17 additions and 21 deletions

View File

@ -32,7 +32,24 @@ userBinDir="~/bin"
# create an ssh key, for use with git/github
ssh-keygen -t ed25519 -f $sshDir"/id_ed25519_git" -N ''
setup_config()
{
git clone https://github.com/crimsontome/config;
cp -f config/bin/* $userBinDir;
if [[ $os == "Ubuntu" ]]; then
cp -f config/ub-server/.bashrc ~/;
elif [[ $os == "Fedora" ]]; then
cp -f config/fedora/.bashrc ~/;
elif [[ $os == "Arch" ]]; then
cp -f config/arch/.bashrc ~/;
else
echo "OS specific bashrc not yet supported";
exit;
fi
cp -f config/.gitconfig ~/;
cp -f config/.ssh/config $sshDir/config
}
# check package manager
if [[ $os == "Ubuntu" ]]; then
echo "using apt package manager";
@ -53,31 +70,10 @@ else
fi
setup_config()
{
git clone https://github.com/crimsontome/config;
cp -f config/bin/* $userBinDir;
if [[ $os == "Ubuntu" ]]; then
cp -f config/ub-server/.bashrc ~/;
elif [[ $os == "Fedora" ]]; then
cp -f config/fedora/.bashrc ~/;
elif [[ $os == "Arch" ]]; then
cp -f config/arch/.bashrc ~/;
else
echo "OS specific bashrc not yet supported";
exit;
fi
cp -f config/.gitconfig ~/;
cp -f config/.ssh/config $sshDir/config
}
cd $gitdir;
gh auth login;
# after logged into gh
# set up ssh keys
firefox https://github.com/settings/ssh/new
#TODO: do gpg stuff toO