dotfiles/README.md

41 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2018-12-17 00:16:37 -06:00
# dotfiles
2019-01-29 16:29:42 -06:00
My personal dotfiles and configurations, generated from templates with Mako!
2018-12-17 00:16:37 -06:00
2018-12-17 00:37:44 -06:00
## Contents
2018-12-17 00:16:37 -06:00
2020-06-23 14:55:45 -05:00
- `install.py` - The script that generates and installs the templates. (Requires Mako)
- `install` - Updates submodules and runs `pipenv run install.py "$@"`.
- `hosts` - Host-specific configuration files.
2019-01-29 16:29:42 -06:00
- `templates/` - The set of base template files.
2018-12-17 00:16:37 -06:00
2019-01-29 16:29:42 -06:00
- `include/` - Template files that do not map directly to a generated file.
2018-12-17 00:16:37 -06:00
2020-06-23 14:55:45 -05:00
- `raw/` - Raw files to be copied directly to the home directory (useful for submodules).
2018-12-17 00:37:44 -06:00
2019-01-29 16:29:42 -06:00
## How it Works
2018-12-17 00:37:44 -06:00
2019-01-29 16:29:42 -06:00
For each file in the `templates/` directory (recursively), the installation script
will parse and render it as a Mako template and output it with the same path but
relative to the home directory. Mako is configured to look for additional files in the
`include/` directory if they don't exist in `templates/`, so use that if you reference
other template files that aren't supposed to be rendered as a standalone file.
2018-12-17 00:37:44 -06:00
2019-01-29 16:29:42 -06:00
## Requirements
2018-12-17 00:37:44 -06:00
2019-01-30 01:52:41 -06:00
Basic requirements (`install`):
- pipenv
Low-level requirements (`install.py`):
- mako
- toml
2018-12-17 00:37:44 -06:00
## Installation
2019-01-29 16:29:42 -06:00
Made easy by the `install` script. Use `install --help` to see customization options.