Run setup script in init hook? #1250
Replies: 3 comments
-
You don't need to recreate your script line-by-line using According to https://distrobox.it/#configure-distrobox Lines 415 to 420 in 4c38d6b |
Beta Was this translation helpful? Give feedback.
-
You can use --volume option to make the script available inside distrobox. |
Beta Was this translation helpful? Give feedback.
-
I have a setup script that compiles a couple packages I need from source and installs them, clones my dotfiles and unstow's them, builds doom emacs, etc, and I'd like to make that script an init hook in my
distrobox.ini
so that when I rundistrobox assemble create
it runs those steps as part of the process of creating my development environment container, after all the packages have installed.I've tried putting each of the commands in the set up script individually in init_hooks, but for some reason it kept failing (something to do with the way init_hooks are parsed and combined), so I'd really like to have them bundled up in a discrete script instead, so that they're executed correctly. Is there any way to make that script accessible to a distrobox's init hooks?
Beta Was this translation helpful? Give feedback.
All reactions