Configuration

Configuration provides application-level settings, as opposed to collection-level settings.

Location & Creation

By default, configuration is stored in a platform-specific configuration directory, according to dirs::config_dir.

PlatformPath
Linux$HOME/.config/slumber/config.yml
MacOS$HOME/Library/Application Support/slumber/config.yml
WindowsC:\Users\<User>\AppData\Roaming\slumber\config.yml

You can also find the config path by running:

slumber show paths

If the config directory doesn't exist yet, Slumber will create it automatically when starting the TUI for the first time.

Note: Prior to version 2.1.0, Slumber stored configuration in a different location on Linux (~/.local/share/slumber/config.yml). If that file exists on your system, it will be used in place of the newer location. For more context, see issue #371.

You can change the location of the config file by setting the environment variable SLUMBER_CONFIG_PATH. For example:

SLUMBER_CONFIG_PATH=~/dotfiles/slumber.yml slumber

Fields

FieldTypeDescriptionDefault
debugbooleanEnable developer informationfalse
editorstringCommand to use when opening files for in-app editing. More infoVISUAL/EDITOR env vars
ignore_certificate_hostsstring[]Hostnames whose TLS certificate errors will be ignored. More info[]
input_bindingsmapping[Action, KeyCombination[]]Override default input bindings. More info{}
large_body_sizenumberSize over which request/response bodies are not formatted/highlighted, for performance (bytes)1000000 (1 MB)
preview_templatesbooleanRender template values in the TUI? If false, the raw template will be shown.true
themeThemeVisual customizations{}