1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-18 05:17:55 +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
disableForcePushing: false
os:
editCommand: '' # see EditCommand section
openCommand: # see OpenCommand section
editCommand: '' # see 'Configuring File Editing' section
openCommand: ''
refresher:
refreshInterval: 10 # file/submodule refresh interval in seconds
fetchInterval: 60 # re-fetch interval in seconds
@ -218,17 +218,21 @@ os:
```
### 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
```yaml
os:
editCommand:
editCommand: 'vim' # as an example
```
2. $(git config core.editor)
3. $GIT_EDITOR
4. $VISUAL
5. $EDITOR
6. $(which vi)
2. \$(git config core.editor)
3. \$GIT_EDITOR
4. \$VISUAL
5. \$EDITOR
6. \$(which vi)
Lazygit will log an error if none of these options are set.