Use chezmoi for temporary setups (only for that one SSH connection)? #3675
-
Hey, chezmoi looks amazing! I am about to try it, but at work I have this scenario: multiple Linux servers where multiple people share the same user. Yes, I know it's bad practice but I am not in a position to change this. This means that I can't simply execute I though about doing this instead, but I am not sure if it's a good idea:
This would effectively make that unique directory my temporary home, meaning I have all my stuff now in the shell executed by step 3. It also makes sure that all config files etc. are properly picked up by any tools I'd use. I guess it would work in most cases, but modifying Is there a better way to use chezmoi for this kind of temporary setup or is the above suggestion the best I can get away with? I am fine with my data staying on the server as long as it doesn't interfere with any other person (I don't want to break their flow). Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, modifying
I would suggest the following:
Hope this helps. chezmoi is probably useful for running botnets, but I hope that's not your usecase. |
Beta Was this translation helpful? Give feedback.
Yes, modifying
HOME
will break a lot of things. I have no idea how many. As a first guess: it will break everything.I would suggest the following:
source
when you log into the machine which sets environment variables and spawns the shell you want.$HOME/.old-pigeon.sh
, which you can manage with chezmoi. …