Thoughts on collection of boilerplates for somewhat common variables #1439
bradenhilton
started this conversation in
General
Replies: 2 comments 1 reply
-
This is a great idea! As you say, there's an initial start in the useful templates doc, but I think it's worth separating this into its own documentation. A few practices that I think are worth including:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Let's convert this to an issue for more visibility. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently I noticed the section on determining the chassis type of the current machine was added to the how to, and it got me thinking about similar things that might be nice to have as variables.
I was wondering what everyone thought about perhaps creating some kind of centralized repo containing boilerplates/snippets that can be used to achieve similar things. I'm mainly focusing on things that can be determined in an abstract way (if the variable itself was highly specific to your needs and your machine(s), there would be little point in adding it to a repo like this) and can also be done on all or most platforms supported by chezmoi.
Some variables that would be nice to have for me personally that I can think of off the top of my head:
if eq .chezmoi.os "android"
.It also occurred to me that some of these could be implemented in chezmoi itself, depending on demand/ease of implementation/scope of course.
Feel free to offer your thoughts and also any ideas for useful variables you might have.
Beta Was this translation helpful? Give feedback.
All reactions