Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert strategy #152

Open
hamiltont opened this issue Jun 3, 2014 · 6 comments
Open

Revert strategy #152

hamiltont opened this issue Jun 3, 2014 · 6 comments

Comments

@hamiltont
Copy link

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
}
@tcarlsen
Copy link

tcarlsen commented Jun 4, 2014

👍

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!

@kirelagin
Copy link
Contributor

By the way, it was possible to uninstall symlinks before migration from Rakefile to sh.

@luancm
Copy link

luancm commented Sep 24, 2015

👍 up!

@artivilla
Copy link

👍

@JackWReid
Copy link

👍

@CNG
Copy link

CNG commented Apr 2, 2017

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.

ajdexter pushed a commit to ajdexter/dotfiles that referenced this issue Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants