-
Notifications
You must be signed in to change notification settings - Fork 296
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
Link from source to unknown path #285
Comments
Yes, you are right, the glob just applies to the source, not the destination. I'm not sure what the semantics should be if globs were to be supported in the destination. How often does this come up, where the exact destination path is unknown? And in such situations, does one usually want the file linked to a particular matching path, or all matching paths? |
Hey thanks for the response. Great program by the way! I wouldn't say it comes up often, but I do know that customizing Firefox userChrome is pretty common. MacOS seems to do a few things in non standard ways too. It might be useful for people who work with Selenium, where users have a number of profiles. Or if there a number of different versions of a program you are working with. There are ways around this specific problem I'm having, but its pretty messy. Basically I have to delete all the profiles with a shell command or do some complex awk/sed work, regenerate the If I had to work out some logic I would I was say run Then you can do something like -link:
file: userChrome.css
- shell_path: ~/Library/Application\ Support/Firefox/Profiles/*.default/chrome |
Just adding my voice to this request - with a very similar usecase: I want to sync my e-mail filters in thunderbird (which shares most of the structure of firefox), and exactly like @typkrft describes, the filters are also inside a profile that includes a machine-generated name that is different on each computer. An alternative way to solve this would be to be able to define variables in the yaml file - so I could do something like
and then:
|
As @typkrft mentioned, I would like to use this for Also, KDE Connnect has a similar format...
In my dotbot config, I would like to write:
And have this glob expanded like with shell globbing. You could apply the "glob: true" flag to both dest and path. Just a second example of where globbing on the DESTINATION would be useful. As @ldorigo commented, setting a variable at the top of our YAML config would also be useful, though it still doesn't entirely solve target globbing as we may want to link to multiple destination files... For example, maybe we have multiple chrome profiles that we would like to share the same |
Sorry, it's very possible I'm not understanding something. My understanding is that the glob feature just applies to the source not the destination being linked to. Maybe a script of some kind would work.
In macOS the Firefox
userChrome.css
is in$HOME/Library/Application\ Support/Firefox/Profiles/*/chrome/userChrome.css
. This folder varies I believe and this would be useful for a couple of reasons:Inside of the Profiles directory are 3 directories for me
2j7r4oqe.default efhnzow1.default-release v775fdai.default-nightly
The text was updated successfully, but these errors were encountered: