Skip to content

Add "hostname" condition to Conditional includes (includeIf) #1665

Open
@Diogo-Rossi

Description

@Diogo-Rossi

Related to: #233

This is a more specific request to add a new conditional include keyword in includeIf conditions that matches the hostname.

A common usage would be for dotfiles, for which the current approach using git requires separate branches and rebase.

Example:

[includeIf "hostname:FIRSTMACHINE"]
	path = /path/to/firstmachineconfig.inc
[includeIf "hostname:SECONDMACHINE"]
	path = /path/to/secondmachineconfig.inc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions