aboutsummaryrefslogtreecommitdiff
path: root/cleanup.sh
blob: 7061e55f61bbe7bb363f3e3c4d7c8fe464d623c0 (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
#!/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

# symlinks
rm -f "$HOME/.config/dircolors.conf"
rm -f "$HOME/.config/git"
rm -f "$HOME/.config/zsh"
rm -f "$HOME/.local/bin/backup"
rm -f "$HOME/.local/bin/color_test"
rm -f "$HOME/.local/bin/utf8_demo"
rm -f "$HOME/.local/share/systemd/user/backup.service"
rm -f "$HOME/.local/share/systemd/user/backup.timer"
rm -f "$HOME/.vimrc"
rm -f "$HOME/.zshenv"

# directories
rm -rf "$HOME/.vim/autoload"
rm -rf "$HOME/.vim/bundle"
rm -rf "$HOME/.vim/plugged"