From 97d74cd1545ab0aa616c28312feae6096ce7ef72 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 22 Jun 2024 19:39:22 +0800 Subject: [PATCH] docs: add example for custom config directory --- docs/configuration/overview.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/configuration/overview.md b/docs/configuration/overview.md index 1bdba0c8..e6945445 100644 --- a/docs/configuration/overview.md +++ b/docs/configuration/overview.md @@ -62,4 +62,10 @@ They are also available for open, icon, previewer, and preloader rules. ## Custom config directory {#custom-directory} -You can change the Yazi configuration directory by exporting the `YAZI_CONFIG_HOME` environment variable. +You can change the Yazi configuration directory by exporting the `YAZI_CONFIG_HOME` environment variable. For example: + +```sh +env "YAZI_CONFIG_HOME=~/.config/yazi-alt" yazi +``` + +will start Yazi with `~/.config/yazi-alt` as the configuration directory, and can have its own `yazi.toml`, `keymap.toml`, `init.lua`, etc. files within it.