chore: add bashrc, gitconfig and ssh config

main
CrimsonTome 2022-11-22 21:58:58 +00:00 committed by Rowan Clark
parent 9e7724235f
commit 17959393ac
No known key found for this signature in database
GPG Key ID: F620D51904044094
1 changed files with 7 additions and 6 deletions

View File

@ -3,9 +3,6 @@
# set some variables
homeDir=$HOME
echo $homeDir
hostname=$HOSTNAME
echo $hostname
@ -14,13 +11,13 @@ echo $os
# ensure some directories exist
gitDir=$homeDir"/git"
gitDir="~/git"
[ ! -d $gitDir ] && mkdir -p $gitDir || echo $gitDir" already exists"
sshDir=$homeDir"/.ssh"
sshDir="~/.ssh"
[ ! -d $sshDir ] && mkdir -p $sshDir || echo $sshDir" already exists"
configDir=$homeDir"/.config"
configDir="~/.config"
[ ! -d $configDir ] && mkdir -p $configDir || echo $configDir" already exists"
@ -36,6 +33,10 @@ if [[ $os == "Ubuntu" ]]; then
cat snap-packages| xargs -n 1 sudo snap install --classic
wget https://dl.discordapp.net/apps/linux/0.0.21/discord-0.0.21.deb;
sudo apt install ./discord-0.0.21.deb;
git clone https://github.com/crimsontome/config;
cp -f config/ub-server/.bashrc ~/;
cp -f config/.gitconfig ~/;
cp -f config/.ssh/config $sshDir/config
elif [[ $os == "Fedora" ]]; then
echo "dnf is not yet supported";
else