Replies: 2 comments 1 reply
-
No real idea right now, but take a look at the Another option would be to separate the externals. For how this solution looks like, take a look at discussion #2375 I'm actually doing something 'near' to your idea, where I have an external that is only pulled when command doesn't exist in the system, but if I do pull the external, I symlink to it from other names, so while not the "chicken-or-the-egg" combination you're describing, it has some simliarity |
Beta Was this translation helpful? Give feedback.
-
There are at least three options that should work. Warning: I haven't tested any of them. Option 1: manage
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to use
chezmoi
withchezmoiexternal
to download and manage a remote archive, and then modify one of the files inside it after extraction.Here's the config I'm using in
.chezmoiexternal.toml
:What I want to do is replace a line in the extracted file
ii/screenshot.qml
. Specifically, I want to change this line:to:
I tried using a filter like this:
But it doesn’t work — I get errors like “file not found” or “unknown archive format.” The file definitely exists, so I don’t think it’s a path issue. I’m probably just misunderstanding how filters work with archives.
I'm new to chezmoi, so I’m not sure if this is the right way to do it.
Would really appreciate any help or pointers — thanks!
Beta Was this translation helpful? Give feedback.
All reactions