Skip to main content

expand_config_path

Function expand_config_path 

Source
pub fn expand_config_path(raw: &str) -> PathBuf
Expand description

Expand a leading ~ and any $VAR / ${VAR} reference in a config path.

Unset variables expand to nothing, as in a shell. This is what lets a config name a path such as ~/.local/state/omarchy/current/theme/datui.toml without hardcoding a home directory.