chore: add bashrc, gitconfig and ssh config
parent
9e7724235f
commit
17959393ac
13
post-install
13
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
|
||||
|
|
Loading…
Reference in New Issue