Skip to content

Commit

Permalink
docs: add example for custom config directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Jun 22, 2024
1 parent 478f491 commit 97d74cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/configuration/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 97d74cd

Please sign in to comment.