Skip to content

Use chezmoi for temporary setups (only for that one SSH connection)? #3675

Answered by twpayne
old-pigeon asked this question in Q&A
Discussion options

You must be logged in to vote

I guess it would work in most cases, but modifying HOME feels like it will break things/tools in unforeseeable ways.

Yes, modifying HOME will break a lot of things. I have no idea how many. As a first guess: it will break everything.

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 would suggest the following:

  1. Since most things are controlled by your shell and environment variables, I would create a shell script that you source when you log into the machine which sets environment variables and spawns the shell you want.
  2. You can store this script in $HOME/.old-pigeon.sh, which you can manage with chezmoi. …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@old-pigeon
Comment options

@twpayne
Comment options

Answer selected by old-pigeon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants