Skip to content

Instantly share code, notes, and snippets.

@toni-sharpe
Last active May 3, 2018 12:41
Show Gist options
  • Save toni-sharpe/93f6035727116b544a8d31eaa3c6eea7 to your computer and use it in GitHub Desktop.
Save toni-sharpe/93f6035727116b544a8d31eaa3c6eea7 to your computer and use it in GitHub Desktop.
linux-teardown.sh
# curl -fsSL <url_for_raw_version_of_this_gist> | bash
# ensure you're in the root
cd ~
# Back up the notes , sublime-projects and ui-snippets folders
cp -r ~/notes /media/psf/Home/dev/parallels
cp -r ~/sublime-projects /media/psf/Home/dev/parallels
cp -r ~/ui-snippets /media/psf/Home/dev/parallels
# Remove the linux-setup folder and clone the repo
rm -rf ~/linux-setup
git clone git@github.com:toni-leigh/linux-setup.git
# Copy dotfiles into the linux setup folder
cp ~/.bash_history ~/linux-setup
cp ~/.bash_profile ~/linux-setup
cp ~/.bashrc ~/linux-setup
cp ~/.git-completion.bash ~/linux-setup
cp ~/.gitconfig ~/linux-setup
cp ~/.git-prompt.sh ~/linux-setup
cp ~/.viminfo ~/linux-setup
cp -r ~/.config/terminator ~/linux-setup
cp -r ~/.config/sublime-text-3 ~/linux-setup
rm -rf ~/linux-setup/sublime-text-3/Cache
rm -rf ~/linux-setup/sublime-text-3/Index
cp -r ~/.config/htop ~/linux-setup
# Add, commit and push
cd ~/linux-setup
git add .
git commit -m "Set files to latest versions"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment