From 65500f1eaaa6642e67f83678dfcb9d78725fe2d3 Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Thu, 24 Mar 2022 02:57:30 -0400 Subject: [PATCH] added commands to setup bashrc; made a call to neofetch so the config would be generated --- auto_move.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/auto_move.sh b/auto_move.sh index 0b71388..00a5319 100644 --- a/auto_move.sh +++ b/auto_move.sh @@ -1,22 +1,25 @@ 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..." -read +neofetch -chown -R $USER /home/$USER -chgrp -R $USER /home/$USER +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/$USER/.zshrc ~/.zshrc -ln -s /home/$USER/.config/neofetch/config.conf ~/.config/neofetch/config.conf -ln -s /home/$USER/.gitconfig ~/.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 \ No newline at end of file