andsens / homeshick

git dotfiles synchronizer written in bash
MIT License
2.1k stars 147 forks source link

Clone to directory, and set working directory, like git -C directory #198

Closed shadowrylander closed 4 years ago

shadowrylander commented 4 years ago

Hello!

I'd like to know if there is any way clone a castle to a specific directory, and work in that directory similar to how git -C directory works; the reason for asking is that I'd like to add this to a python program I'm working on, incorporating the yadm program as well, which also has the ability to specify which directory to clone to and work in.

In addition, would you happen to know if any possible solutions would work with the Ruby homesick version as well?

Thank you kindly for the help!

andsens commented 4 years ago

I don't know about homesick, but homeshick completely relies on $HOME. Meaning if you invoke it with HOME=/some/other/dir, it will assumes that is your home directory and work as expected. There is no way to get rid of the $HOME/.homesick/repos suffix though, that part is hardcoded.

shadowrylander commented 4 years ago

Ah, that makes makes sense; thanks!