jesseduffield / jesseduffield/lazygit

[Feature Request] Allow running bash commands in the parent environment

Open
#2,824 11 comments 0 reactions 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 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

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.