diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-10-16 12:07:24 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-10-16 12:22:34 +1100 |
commit | d02e52989ea33fbdbc89a98f5f39932a36acfeb7 (patch) | |
tree | 7fa75576c610b7f9b3ca8fbf778d79df93236eca /docs/Config.md | |
parent | 913a2fd0656c393e743686cf6fe823a963916463 (diff) |
small changes
Diffstat (limited to 'docs/Config.md')
-rw-r--r-- | docs/Config.md | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/docs/Config.md b/docs/Config.md index 92e63db58..bc09575bb 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -265,10 +265,19 @@ os: `{{editor}}` in `editCommandTemplate` is replaced with the value of `editCommand`. -### Change config file used +### Overriding default config file location -- Use `--config-file=~/.base_lg_conf,~/.light_theme_lg_conf` or `$LG_CONFIG_FILE="~/.base_lg_conf,~/.light_theme_lg_conf"` -- Change the default config directory `$CONFIG_DIR="~/.config/lazygit"` +To override the default config directory, use `$CONFIG_DIR="~/.config/lazygit"`. This directory contains the config file in addition to some other files lazygit uses to keep track of state across sessions. + +To override the individual config file used, use the `--use-config-file` arg or the `LG_CONFIG_FILE` env var. + +If you want to merge a specific config file into a more general config file, perhaps for the sake of setting some theme-specific options, you can supply a list of comma-separated config file paths, like so: + +```sh +lazygit --use-config-file=~/.base_lg_conf,~/.light_theme_lg_conf +or +LG_CONFIG_FILE="~/.base_lg_conf,~/.light_theme_lg_conf" lazygit +``` ### Recommended Config Values |