jesseduffield / lazygit

simple terminal UI for git commands
MIT License
47.94k stars 1.72k forks source link

Feature Request: Direnv support in lazygit #3653

Open Nydragon opened 2 weeks ago

Nydragon commented 2 weeks ago

Is your feature request related to a problem? Please describe.

When using lazygit outside of a repository and moving to one via the recent repositories prompt, direnv is not triggered and therefore will not set up all the necessary programs to be able to commit, i.e pre-commit + all tasks inside.

This is a problem when using a nix shell to manage/install development dependencies in tandem with direnv.

Describe the solution you'd like

I'd like direnv to be run after selecting a recent repository.

Describe alternatives you've considered

Moving to the wished repository and opening lazygit there, however this defeats the purpose of the recent repositories prompt.

Additional context