Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Diogo-Rossi opened this issue Feb 15, 2024 · 0 comments
Open

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

Diogo-Rossi opened this issue Feb 15, 2024 · 0 comments

Comments

@Diogo-Rossi
Copy link

Diogo-Rossi commented Feb 15, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant