GUIDE · 03
Configuration
Understand configuration paths, validation, layering, and runtime reload.
Where files live
Zari checks ZARI_CONFIG_HOME first, then $XDG_CONFIG_HOME/zari, then ~/.config/zari. Every file is optional; built-in defaults are always available.
~/.config/zari/
├── zari.toml
├── keymap.toml
└── theme.tomlGenerate starter files
zari init creates the config directory and all three starter files. It is safe to run again: files that already exist are reported and left untouched. ZARI_CONFIG_HOME and XDG_CONFIG_HOME are respected.
zari init
# Generate files somewhere else
ZARI_CONFIG_HOME=/some/path zari initManager and preview
[manager]
show_hidden = false
sort_by = "natural"
sort_reverse = false
directories_first = true
layout = [1, 3, 2]
[preview]
enabled = true
max_file_size = 10485760
tab_size = 4
line_numbers = trueSafe reload
Press R to reload all three files. If the main configuration is malformed, Zari keeps the last working configuration and shows a warning instead of leaving the application in a partial state.