InstaTout/auto_move.sh

29 lines
681 B
Bash
Raw Normal View History

LOC=$1
LOCAL_USER=$2
2022-03-25 13:48:34 -04:00
7z x $LOC -o./files/temp/
mv ./files/temp/Laptop ./files/temp/$LOCAL_USER/ ||\
mv ./files/temp/Desktop ./files/temp/$LOCAL_USER/
cp -vR ./files/temp/$LOCAL_USER/* /home/$LOCAL_USER/
echo "Hit ENTER when files finish transferring..."
neofetch
chown -R $LOCAL_USER /home/$LOCAL_USER
chgrp -R $LOCAL_USER /home/$LOCAL_USER
rm ~/.zshrc
rm ~/.config/neofetch/config.conf
rm ~/.gitconfig
ln -s /home/$LOCAL_USER/.zshrc ~/.zshrc
ln -s /home/$LOCAL_USER/.config/neofetch/config.conf ~/.config/neofetch/config.conf
ln -s /home/$LOCAL_USER/.gitconfig ~/.gitconfig
echo `cat ./files/.bashrc` >> /home/$LOCAL_USER/.bashrc
echo `cat ./files/.bashrc` >> ~/.bashrc