You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 months ago | |
---|---|---|
src | 7 months ago | |
.gitignore | 7 months ago | |
Cargo.lock | 7 months ago | |
Cargo.toml | 7 months ago | |
README.md | 7 months ago | |
config.toml | 7 months ago |
README.md
How does it work?
This is a dotfiles installer. It will read a config file and install your dotfiles.
The dotfiles config (referenced as dfc in the future) is a toml file. It has a few sections:
[meta] # this houses the meta information about your dotfiles
version = "1.0.0" # the version of your dotfiles
owner = "Didier" # the owner of the dotfiles
# the rest of the meta information is optional and will just be emitted at the end of ~/.dfrs/meta.toml
[setup]
workdir = "/tmp/dotfiles"
[setup.pre]
workdir = "/tmp"
commands = []
[setup.repo] # this is the section that will be used to clone the repo
repotype = "git" # types: git or local
# you can use [setup.pre] and [setup.post] to run commands before and after the setup
url = "https://git.faulty.nl/didier/dotfiles.git" # if type is git, this is the url to clone from else it can be ignored
path = "/tmp/dotfiles" # optional, defaults to /tmp/<repo name> # if type is local, this is the path to the local repo
branch = "main" # optional, defaults to master
[packages] # this houses the packages that are required for your dotfiles to work
# example:
python = "3.8.0" # the version of python that is required
git = "latest" # or latest to get the latest version
[files] # this houses the files that are to be installed
# the key is the source file and the value is the destination file
# keys are relative to the workdir
# values are relative to the home directory (override with --home flag)
".bashrc" = "~/.bashrc"