Revert strategy
It would be nice to have a strategy to "clean up" once you're all done - to let people try this project out without risk of cluttering their system. Something like this is a simple start, but it would be vastly improved if the script detected *.backup files and restored them to their proper locations, and potentially even deleted the ~/.dotfiles directory
in script/unbootstrap:
#!/usr/bin/env bash
#
# unbootstrap uninstalls things.
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)
uninstall_dotfiles () {
info 'uninstalling dotfiles'
for src in $(find "$DOTFILES_ROOT" -maxdepth 2 -name '*.symlink')
do
dst="$HOME/.$(basename "${src%.*}")"
echo "Removing $dst"
rm "$dst"
done
}
:+1:
love my fork of this repo, but I like the idea of being able to start from strach myself some day, without having to unbootstrap everything manually!
By the way, it was possible to uninstall symlinks before migration from Rakefile to sh.
:+1: up!
:+1:
:+1:
I wrote a wrapper to manage both installing and uninstalling modules (Holman's "topics") in CNG/dotfiles. It's diverged quite a bit from this repo, but it maintains most of the topic structure and could probably be adapted to someone using this repo.