-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make codespaces detection shorter #1
Conversation
The reason for the original code was that it makes it easier for people to add their own Codespaces specific configuration: they can include it in the existing |
I see. I didn't think about that, probably because I can't imagine what else people would do in the |
The main difference (as far as I can tell) is that the Codespaces dotfile setup is non-interactive so you can't use interactive template functions like
|
You're right. I would personally do this differently:
Here I create the variable Is this possible? If yes, I can open an issue for such a feature. |
Thanks! That's a nice improvement and I've updated my template to use it.
If I understand correctly, this is not possible. The |
8cf5050
to
91c8627
Compare
I made some changes and included an example mail address. Do you think it's a good idea? |
No :) This is a template repo for people who are just getting started with chezmoi and templates, so we should make things as easy to understand as possible, even if there are some equivalent code golf ways of achieving the same effect. |
91c8627
to
47aead0
Compare
I see. What's your opinion about
Compared to the original one? |
47aead0
to
d3735c6
Compare
I would go with one similar to what you suggested here:
Reasons:
|
1eca957
to
0afc91e
Compare
0afc91e
to
07998bc
Compare
Thank you :) |
No need to thanks! :) |
At least until we have Masterminds/sprig#258.