added commands to setup bashrc; made a call to neofetch so the config would be generated

This commit is contained in:
Michael Scalzetti 2022-03-24 02:57:30 -04:00
parent 9eef446821
commit 65500f1eaa

View File

@ -1,22 +1,25 @@
LOC=$1 LOC=$1
USER=$2 LOCAL_USER=$2
7z x $LOC -o./files/temp/$USER/ 7z x $LOC -o./files/temp/$LOCAL_USER/
cp -vR ./files/temp/$USER/* /home/$USER/ cp -vR ./files/temp/$LOCAL_USER/* /home/$LOCAL_USER/
echo "Hit ENTER when files finish transferring..." echo "Hit ENTER when files finish transferring..."
read
neofetch
chown -R $USER /home/$USER chown -R $LOCAL_USER /home/$LOCAL_USER
chgrp -R $USER /home/$USER chgrp -R $LOCAL_USER /home/$LOCAL_USER
rm ~/.zshrc rm ~/.zshrc
rm ~/.config/neofetch/config.conf rm ~/.config/neofetch/config.conf
rm ~/.gitconfig rm ~/.gitconfig
ln -s /home/$USER/.zshrc ~/.zshrc ln -s /home/$LOCAL_USER/.zshrc ~/.zshrc
ln -s /home/$USER/.config/neofetch/config.conf ~/.config/neofetch/config.conf ln -s /home/$LOCAL_USER/.config/neofetch/config.conf ~/.config/neofetch/config.conf
ln -s /home/$USER/.gitconfig ~/.gitconfig ln -s /home/$LOCAL_USER/.gitconfig ~/.gitconfig
echo `cat ./files/.bashrc` >> /home/$LOCAL_USER/.bashrc
echo `cat ./files/.bashrc` >> ~/.bashrc