1
0
Fork 0
mirror of synced 2024-11-22 08:15:34 -05:00

Fix headers

Anish Athalye 2019-12-31 13:30:09 -05:00
parent c7ce48dd54
commit 22f0588c81

@ -1,14 +1,14 @@
## How can I have different groups of tasks for different hosts with different configurations?
# How can I have different groups of tasks for different hosts with different configurations?
### Simple setup
## Simple setup
See [here](https://github.com/anishathalye/dotbot/pull/11#issuecomment-73082152) for information on using machine-specific configs.
### More advanced setup
## More advanced setup
If you want to install programs independently from a general configuration file, the following setup might be for you.
#### Configurations
### Configurations
Write a configuration file for each program and put them together in a directory:
```
meta/configs/
@ -19,7 +19,7 @@ meta/configs/
```
Then add a basic configuration file (i.e. for cleaning up) at `meta/base.yaml`.
#### Profiles
### Profiles
Then summarize these configurations in profiles:
```
meta/profiles/
@ -29,10 +29,10 @@ meta/profiles/
```
In a profile you specify the configurations you want to install (one per line, without `.yaml`).
#### New `install` scripts
### New `install` scripts
Then replace the `install` script with the following ones:
##### `install-profile`
#### `install-profile`
```bash
#!/usr/bin/env bash
@ -68,7 +68,7 @@ for config in ${CONFIGS} ${@}; do
done
```
##### `install-standalone`
#### `install-standalone`
```bash
#!/usr/bin/env bash
@ -110,7 +110,7 @@ If you have any open questions or something is unclear, you can try to take a lo
* [vsund/dotfiles](https://github.com/vsund/dotfiles)
* [magicmonty/dotfiles_dotbot](https://github.com/magicmonty/dotfiles_dotbot)
## Automatically install or update dotfiles when ssh'ing into a remote machine (or: let my dotfiles follow me)
# Automatically install or update dotfiles when ssh'ing into a remote machine (or: let my dotfiles follow me)
Original inspiration: http://klaig.blogspot.co.at/2013/04/make-your-dotfiles-follow-you.html
@ -159,7 +159,7 @@ This works best if you use public key authentication (or GSSAPI/Kerberos authent
You can use this tool (implemented as a Git pre-commit hook) to automatically update Dotbot's config file when adding files in Git: https://github.com/gwerbin/dotbot-autobot.
# Uninstall script
## Uninstall script
Currently, dotbot does not support uninstalling the symlinks. This script can be a good starting point for users who want this feature ([source](https://github.com/anishathalye/dotbot/issues/152#issuecomment-394129600))