-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add support to execute .homeshickrc bash script #164
Comments
My initial reaction would be, why?
So what's the use-case(s)? :-) |
I think it would be nice to allow castles to contain code that can easily be run without having to link that code into a folder in your path first or needing to know where homeschick saves your repos, especially for code that only needs to be run on setup or other similar events. In the end running |
The use case for running arbitrary code I have in mind is the following. I've got several castles (one with my personal settings that I'm used to and another with just work-related stuff that I don't need at home) with ssh aliases and git configuration. ssh-aliases are just files in ~/.ssh/config.d; however, in order for them to be processed, ~/.ssh/config has to contain Same goes for .gitconfig; I store pieces of it that are to be included but I have to add inclusions manually; it's even a bit worse than ssh example above because unlike ssh, .gitconfig doesn't allow wildcard inclusions. |
I have a similar use case. I would like to run a small script at "link" time which combines some config files. In my case there really isn't a work around since the config format doesn't support any form of "#include" or include directories. One instance of this is older ssh (like that installed on my web hosting) which does not support "include" at all. For my uses executing the file |
I'll add a simple use case I stumbled upon. I track my midnight commander configuration. But one thing that mc does is write all the time to .config/mc/ini some panel position info so the file is never clean. My solution is to track .config/mc/ini.dist and copy ini.dist -> ini when installing on a new machine. I came here searching for a way to script ini.dist -> ini whenever ini.dist changes. |
I have also a similar case where I need to update my |
From the homesick readme:
Would there be any interest to add the same thing to homeshick, in form of a bash script named
.homeshickrc
at the root of a castle?The text was updated successfully, but these errors were encountered: