From 17959393ac7e1f256d4593206c05ba37ac8e9ea1 Mon Sep 17 00:00:00 2001 From: CrimsonTome Date: Tue, 22 Nov 2022 21:58:58 +0000 Subject: [PATCH] chore: add bashrc, gitconfig and ssh config --- post-install | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/post-install b/post-install index 0fb9489..acbec79 100755 --- a/post-install +++ b/post-install @@ -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