Skip to main content

config.yaml

The following settings are configurable in the config file like so:

config.yaml
dotfiles: <path to dotfiles>
link_type: <'symbolic'|'hard'>
shell_command: <shell command template used for the install command>
variables: <map of variables which can be used in templates>

Those settings can be overridden in the cli when applicable (see rotz --help and rotz <command> --help to get more information).

shell_command

This setting allows to specify how Rotz should launch the install command.

If this is not set the default values are used.

Windows
shell_command: powershell -NoProfile -C {{ quote "" cmd }}
Linux
shell_command: bash -c {{ quote "" cmd }}
MacOS
shell_command: zsh -c {{ quote "" cmd }}

variables

These variables can be used in templates.

config.yaml
variables:
some: value
array:
- one
- two

Repo defaults

It is possible to put a config file in your repo containing default values depending on the OS. These are overridden by the config file on the machine.

.dotfiles/config.yaml
global:
link_type: <globalDefault>
windows:
dotfiles: <windowsDefault>
linux:
dotfiles: <linuxDefault>
darwin:
dotfiles: <macosDefault>

If no global, windows, linux or darwin key is provided the global key will be assumed.

.dotfiles/config.yaml
link_type: <globalDefault>