Skip to content
/ dtf Public

Elegantly manage home directory dotfiles with the power of git version control

License

Notifications You must be signed in to change notification settings

h0tw1r3/dtf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dtf

home directory management with git

Quick Start

  1. Create a public or private git repo and export DTF_REPO with 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"
    
  2. 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.sh
    

    The filename ~/.dtf.sh is important.

  3. Watch the magic! Careful, files in your DTF_REPO will 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_AUTORC to false before running the function.

    dtf status
    

About

Elegantly manage home directory dotfiles with the power of git version control

Topics

Resources

License

Stars

Watchers

Forks

Languages