Linking to a target defined by the output of a command
See original GitHub issueHi, I tried to add my Firefox ‘chrome’ directory to dotbot today, but the challenge is that it is stored inside the profile directory: ~/.mozilla/firefox/XXXXXX.default/chrome, where XXXXXX is some random string that will be different on different machines (and may change, in theory, if I reconstruct a profile).
I can get that string, and hence construct the path, by running:
grep 'Path=' ~/.mozilla/firefox/profiles.ini | sed s/^Path=//
but it doesn’t seem that dotbot has support for embedding that in the link directive.
I tried:
- link:
~/.mozilla/firefox/$(grep 'Path=' ~/.mozilla/firefox/profiles.ini | sed s/^Path=//)/chrome: firefox/chrome
I also tried using a glob, but I guess this only works for the source, not the target. E.g., the following doesn’t work either (yes I enabled globbing):
- link:
~/.mozilla/firefox/*.default/chrome: firefox/chrome
Could either of these two things (globbing on targets or $()
be implemented, please?
Or if there’s a better way to achieve what I’m trying to do, please let me know 😃
Thanks for dotbot!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Not to resurrect a dead issue, but I thought I’d post my solution to this for anyone who wants to keep their Firefox
userChrome.css
anduser.js
files in dotbot.Unlike the above solutions, this is entirely within
install.yaml.conf
, and will work for every profile, on every device. I use multiple Firefox profiles (personal and work) across multiple devices, so this works much better for that use case. Feel free to stick this in the wiki if you want @anishathalye.Closing due to inactivity, feel free to reopen if there’s anything else.