Skip to content

Environment Variables

Brett Terpstra edited this page Oct 31, 2021 · 2 revisions

You can run Doing with environment variables to affect its behavior. These can be defined in the command, or you can export them globally in your shell setup.

To apply an environment variable for one run only:

$ DOING_CONFIG=~/test.doingrc doing now Testing with a different config

To make the change permanent, add the variable to your shell config. For example, for Bash you would add export DOING_CONFIG="~/test.doingrc" to ~/.bash_profile.

You can also alias the one-run only format to have different commands with different behavior.

alias testdoing="DOING_CONFIG=~/test.doingrc doing"

The available variables:

variable function
DOING_CONFIG Change the base config file (default ~/.doingrc)
DOING_DEBUG/_VERBOSE Turn on debug logging
DOING_PLUGIN_DEBUG Provide additional logging during plugin loading
DOING_QUIET Silence all output messages except for errors
DOING_LOG_LEVEL Set the log level from 0 (debug) to 3 (error)
DOING_EDITOR Same as setting editor: in config