Skip to main content

Configuration

Settings live in ~/.config/42space/config.toml. Only overrides go there; everything else uses the defaults below. Run 42space sync after editing.

[restore]​

KeyDefaultMeaning
on_login"background"what a new or out-of-date machine does when a shell starts: background restores and prints a notice, notify only prints a hint, off does nothing
parallel_downloads4downloads run at the same time
retry_minutes10minimum time between automatic restore attempts

[remote]​

KeyDefaultMeaning
auto_committruecommit every change to the environment repo
auto_pushfalsepush after every commit

Toggle them with 42space remote auto-commit on|off and 42space remote auto-push on|off.

[observe]​

KeyDefaultMeaning
background_scantruelook for untracked changes in the background
scan_interval_h6hours between background scans
shell_hooktruerecord install-like commands for the journal

[storage]​

KeyDefaultMeaning
home_warn_pct80HOME usage that doctor warns about
home_block_pct95HOME usage that doctor reports as a failure

[policies]​

Policies point caches and prefixes at goinfre. Each has enabled, env and optionally path:

PolicyDefaultSets
npmonNPM_CONFIG_CACHE, NPM_CONFIG_PREFIX, PATH
pnpmonpnpm_config_store_dir, npm_config_store_dir
corepackonCOREPACK_HOME
uvonUV_CACHE_DIR, UV_PYTHON_INSTALL_DIR, UV_TOOL_DIR, UV_TOOL_BIN_DIR, PATH
piponPIP_CACHE_DIR
goonGOMODCACHE, GOCACHE
xdg-cacheoffXDG_CACHE_HOME (a big HOME saver)
[policies.xdg-cache]
enabled = true

[policies.go]
enabled = false

env.toml​

Managed variables and PATH entries live in ~/.config/42space/env.toml, written by 42space env and 42space path:

path = ["{home}/scripts"]

[vars]
EDITOR = "nvim"