home directory management with git
-
Create a public or private git repo and export
DTF_REPOwith the URL. If you have an existing repo, you can use that, but make sure to backup any files in it before running dtf for the first time, as it will overwrite any existing files in the repo with the files in your home directory. If you don't have a repo.export DTF_REPO="<your public or private git repo url>" export DTF_BRANCH="main" # optional, defaults to "main" -
Install the script by downloading and sourcing it: Should work on any shell supporting POSIX, but only tested on ash, bash and zsh
curl -Ls https://github.com/h0tw1r3/dtf/raw/main/dtf.sh > ~/.dtf.sh . ~/.dtf.shThe filename ~/.dtf.sh is important.
-
Watch the magic! Careful, files in your
DTF_REPOwill overwrite any existing files in your home directory!First time dtf is run, it will clone the repo, checkout all the files, and update your shells "rc" file to make dtf available in future sessions. If you wish to skip the "rc" file update, you can set
DTF_AUTORCtofalsebefore running the function.dtf status