aboutsummaryrefslogtreecommitdiff
path: root/cleanup.sh
blob: a0d694423a3da842fd3edd3eef570490a47a2e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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