jesseduffield / jesseduffield/lazygit

Set a configuration value via environment variable

Open
#4,986 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Is your feature request related to a problem? Please describe.
I'd like to have a modified configuration in specific contexts. Currently to do so, unless I'm missing something, I need to maintain a second configuration file. For instance, I generally use `os.editPreset: 'nvim'`, but in the context of Zed, I want to use `zed`.

### Describe the solution you'd like
I'd like to be able to set `LAZYGIT_OS_PRESET=zed` to override just this specific value while still using the rest of the config.yml.

### Describe alternatives you've considered
I can maintain a second config and use it explicitly, but then for other changes in configuration, I must update both files.

### Additional context

FWIW, I can work around this specific issue by removing the value altogether, because `EDITOR` and `VISUAL` are correctly utilized. But I still think overrides is a worthy consideration.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.