Replies: 3 comments 1 reply
-
Hey, you can not have multiple different install commands in the defaults. you'll have to decide which of the two you'll want as the default. you can setup your dotfiles directory like this:
# defaults.yaml
windows:
installs: winget install {{ name }} the this file overwrites that and uses scoop. # other/dot.yaml
windows:
installs: scoop install {{ name }} |
Beta Was this translation helpful? Give feedback.
-
Another option is to have two subfolders with different defaults.
# winget/defaults.yaml
windows:
installs: winget install {{ name }} # scoop/defaults.yaml
windows:
installs: scoop install {{ name }} the the |
Beta Was this translation helpful? Give feedback.
-
Thank you @volllly for this detailed explanation. This clears out much of my doubts. Just one more question related to templating: I have a folder called Now the thing is, here I could create two separate folders So what can we do here. It would helpful if we could mention something inside the empty |
Beta Was this translation helpful? Give feedback.
-
I'm am aware about Jinja. So I believe handlebars is somewhat similar. But how does this work for multiple defaults. I mean, let's say, I want to setup my config as below:
Is this possible ?
Also, from here, it says,
And my config is like this:
So, how to set the empty keys:
Like this ?
Or like this:
Because both does not work for me.
Beta Was this translation helpful? Give feedback.
All reactions