Skip to content

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

@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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions