jesseduffield / jesseduffield/lazygit
[Feature Request] Allow running bash commands in the parent environment
- 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 have certain environment variables defined in my shell that specify parameters for kicking off builds on a CI server. I would like to be able to implement this functionality in LazyGit so that I can kick off builds on specific hashes, but when LazyGit runs bash commands it does not preserve the parent environment variables, so my commands can't access them.
**Describe the solution you'd like**
I would like for there to be a way to run commands while preserving all (or even some specific) environment variables from the shell session that LazyGit is run in.
**Describe alternatives you've considered**
I can't think of any way to get around this that doesn't involve writing the data in the env vars to a file, which I cannot do (sensitive information)
Is this doable somehow already that I'm missing? If not, is this something that is possible to add?
Contributor guide
Assessment
This issue has not been assessed yet.