Skip to content

Commit

Permalink
docs: update and explain editor envvar lookup order
Browse files Browse the repository at this point in the history
  • Loading branch information
eekhof authored and altsem committed Sep 3, 2024
1 parent bc18b6e commit 04f481b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A help-menu can be shown by pressing the `h` key, or by configuring `general.alw
<img style="width: 720px" src="vhs/help.png"/>

### Configuration
The environment variables `GIT_EDITOR`, `VISUAL` or `EDITOR` (checked in this order) dictate which editor Gitu will open.
The environment variables `VISUAL`, `EDITOR` or `GIT_EDITOR` (checked in this order) dictate which editor Gitu will open. This means that e. g. commit messages will be opened in the `GIT_EDITOR` by Git, but if the user wishes to do edits to the actual files in a different editor, `VISUAL` or `EDITOR` can be set accordingly.

Configuration is also loaded from:
- Linux: `~/.config/gitu/config.toml`
Expand Down

0 comments on commit 04f481b

Please sign in to comment.