1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

small changes

This commit is contained in:
Jesse Duffield
2021-10-16 12:07:24 +11:00
parent 913a2fd065
commit d02e52989e
8 changed files with 73 additions and 68 deletions

View File

@ -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