From 22f0588c81c6df03f818499a9cbb7fa36da8ec10 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Tue, 31 Dec 2019 13:30:09 -0500 Subject: [PATCH] Fix headers --- Tips-and-Tricks.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Tips-and-Tricks.md b/Tips-and-Tricks.md index 7a3410e..c0511e6 100644 --- a/Tips-and-Tricks.md +++ b/Tips-and-Tricks.md @@ -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)) @@ -183,4 +183,4 @@ for section in conf: if os.path.islink(realpath): print("Removing ", realpath) os.unlink(realpath) -``` \ No newline at end of file +```