Skip to main content

Sharing your setup

Your setup lives in a git repo at ~/.config/42space. Every change made with 42space is committed there automatically.

42space remote set git@github.com:you/42space-env.git
42space remote push
42space remote pull && 42space sync # on a machine that doesn't share your HOME
Use a private repository

The repo holds your tool list, environment variables and settings. Secret files of your projects are never in it, but keep it private anyway.

What hasn't been shared yet​

42space remote status # remote, settings, unpushed commits, uncommitted files
42space log # history of the repo; ↑ marks commits not pushed yet
42space log -n 5 -p # the last five, with what they changed

42space status and 42space doctor also warn when commits are waiting to be pushed or files are not committed.

Automatic commits and pushes​

42space remote auto-push on # push after every change, sync's lock updates included
42space remote auto-commit off # leave changes uncommitted until you commit them
42space remote auto-push # show the current setting

These are stored in config.toml and apply on every machine. Hand edits (say, to a file in tools.d/) stay uncommitted until the next change made with 42space, which commits them too.