1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-21 12:16:54 +02:00

minor changes

This commit is contained in:
Jesse Duffield 2021-06-05 10:04:35 +10:00
parent 3258c24fb3
commit 0df02dacc2

View File

@ -62,8 +62,8 @@ git:
overrideGpg: false # prevents lazygit from spawning a separate process when using GPG overrideGpg: false # prevents lazygit from spawning a separate process when using GPG
disableForcePushing: false disableForcePushing: false
os: os:
editCommand: '' # see EditCommand section editCommand: '' # see 'Configuring File Editing' section
openCommand: # see OpenCommand section openCommand: ''
refresher: refresher:
refreshInterval: 10 # file/submodule refresh interval in seconds refreshInterval: 10 # file/submodule refresh interval in seconds
fetchInterval: 60 # re-fetch interval in seconds fetchInterval: 60 # re-fetch interval in seconds
@ -218,17 +218,21 @@ os:
``` ```
### Configuring File Editing ### Configuring File Editing
Lazygit will run edit with the first set option:
Lazygit will edit a file with the first set editor in the following:
1. config.yaml 1. config.yaml
```yaml ```yaml
os: os:
editCommand: editCommand: 'vim' # as an example
``` ```
2. $(git config core.editor)
3. $GIT_EDITOR 2. \$(git config core.editor)
4. $VISUAL 3. \$GIT_EDITOR
5. $EDITOR 4. \$VISUAL
6. $(which vi) 5. \$EDITOR
6. \$(which vi)
Lazygit will log an error if none of these options are set. Lazygit will log an error if none of these options are set.