Skip to content

Environment Variables

DOTKIT_DIR is written to ~/.local/share/dotkit/export.env after a successful bootstrap.

VariableDescription
DOTKIT_DIRAbsolute path to your cloned dotkit repo (e.g. ~/dotkit).

Available to all .txt, .md, and .sh files running inside a profile.

VariableDescription
DOTKIT_PROFILEName of the active profile (e.g. personal).
DOTKIT_PROFILE_DIRAbsolute path to the active profile directory ($DOTKIT_DIR/profiles/$DOTKIT_PROFILE).

Available to all .txt, .md, and .sh files run by dotkit apply or dotkit run.

VariableDescription
DOTKIT_FUNCSPath to the dotkit_funcs file. Scripts source this to get dotkit map, dotkit install, dotkit ask as shell functions. Set automatically by dotkit run and dotkit apply.
VariableDescription
DOTKIT_PATGitHub personal access token. Used by dotkit run for private repos and by the bootstrap installer for private repo cloning.

DOTKIT_DIR is persisted to ~/.local/share/dotkit/export.env. The active profile is stored separately in ~/.local/share/dotkit/active and used by dotkit add to resolve DOTKIT_PROFILE_DIR.

Any variable can be overridden inline:

Terminal window
DOTKIT_PROFILE_DIR=~/dotkit/profiles/work dotkit apply ~/dotkit/profiles/work