Currently mdriver supports individual environment variables for options:
MDRIVER_THEME
MDRIVER_WIDTH
MDRIVER_PADDING
It would be nice to also support a single MDRIVER environment variable that works like LESS, where you can specify command-line flags as a string:
export MDRIVER="--padding 2 --width 100 --theme monokai"
This would be similar to how less allows:
The individual env vars should be kept for backward compatibility. The precedence would be:
- Command-line flags (highest priority)
- Individual
MDRIVER_* env vars
MDRIVER env var (parsed as flags)
- Built-in defaults (lowest priority)
This gives users flexibility to choose their preferred configuration style.
Currently mdriver supports individual environment variables for options:
MDRIVER_THEMEMDRIVER_WIDTHMDRIVER_PADDINGIt would be nice to also support a single
MDRIVERenvironment variable that works likeLESS, where you can specify command-line flags as a string:This would be similar to how
lessallows:The individual env vars should be kept for backward compatibility. The precedence would be:
MDRIVER_*env varsMDRIVERenv var (parsed as flags)This gives users flexibility to choose their preferred configuration style.