Make a list of files to remove, then create a basic script to remove them. This will make the installer script easier to test.
- If no file is found, install it.
- If a file is found, add an option that asks whether the user would like to skip installing the file again.
rm ~/Library/Fonts/IBMPlexMono*.ttf
rm ~/Library/Fonts/UbuntuMono*.ttf
rm -f /Applications/Spectacle.app rm -f /Applications/Typora.app rm -f /Applications/GitHub\ Desktop.app/ rm -f /Applications/Atom.app/
- Check for a .backup version. If one exists, rename the file, sans .backup.
- If a backup does not exist, then remove it.
rm -f ~/.stylelintrc.json rm -f ~/.git-prompt.sh rm -f ~/.git-completion.sh rm -f ~/.bash_aliases rm -f ~/.bashrc rm -f ~/.bash_profile rm -f ~/.editorconfig rm -f ~/.atom/
rm -f ~/Library/Application\ Support/Spectacle/Shortcuts.json