From f2dfde23f8157da1532a2b2e236af529fed47713 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Thu, 11 Apr 2024 16:21:15 -0500 Subject: replace janky deploy script with stow and make re-orgs all the console oriented dotfiles to be stowable makefile to deploy everything move from vimplug to native vim packages cleanup script for blowing away old symlinks --- cleanup.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 cleanup.sh (limited to 'cleanup.sh') diff --git a/cleanup.sh b/cleanup.sh new file mode 100755 index 0000000..a0d6944 --- /dev/null +++ b/cleanup.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# THIS IS SCARY! +# This is a transitional script for cleaning out old symlinks since +# stow doesn't like overwriting existing symlminks. This should only +# need to run once on a system, and only if dotfiles were managed +# without stow before. Should probably delete this once stow-based +# dotfiles are rolled out everywere. + +set -euo pipefail + +to_delete=" +.local/bin/color_test +.local/bin/utf8_demo +.config/dircolors.conf +.config/git +.vim/autoload +.vim/plugged +.vimrc +.config/zsh +.zshenv +.local/bin/backup +.local/share/systemd/user/backup.service +.local/share/systemd/user/backup.timer +" + +for i in $to_delete; do + rm -rf "$HOME/${i:?}" +done -- cgit v1.2.3