mkdir .archived
chmod 755 ~

#remove .bash_logout
mv .bash_logout .archived/.bash_logout
touch .bash_logout
chmod 644 .bash_logout

#install mark recal
mkdir .markRecal
wget -qO .markRecal/installMarkRecal.sh init.skidbladner.nexus/installMarkRecal.sh
chmod 755 .markRecal/installMarkRecal.sh

#install switch project
mkdir .switchProject
wget -qO .switchProject/installSP.sh init.skidbladner.nexus/installSP.sh
chmod 755 .markRecal/installSP.sh

#clone .bashrc
mv .bashrc .archived/.bashrc
wget -q init.skidbladner.nexus/.bashrc
chmod 644 .bashrc

#set color prompt
wget -q init.skidbladner.nexus/prompt_color.sh
chmod 755 prompt_color.sh

#ssh stuff
mkdir -r .ssh
chmod 700 .ssh
wget -qO .ssh/authorized_keys init.skidbladner.nexus/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
wget -qO .ssh/config init.skidbladner.nexus/.ssh/config
chmod 744 .ssh/config
wget -qO .ssh/known_hosts init.skidbladner.nexus/.ssh/known_hosts
chmod 744 .ssh/known_hosts

#git stuff
ssh-keygen -q -t ed25519 -C "jamcdonald@$(hostname)" -f ~/.ssh/id_ed25519 -N ""
wget -qO init.skidbladner.nexus/.ssh/.gitconfig

touch ~/.hushlogin

echo Use "./prompt_color.sh" to set the prompt color

echo "SSH key, add to authorized_keys to allow access or to https://github.com/settings/keys to allow git commits"
cat .ssh/id_ed25519.pub

