Closed jamesward closed 4 years ago
yeah I think we should totally do that. many env vars like LC_*, TERM, EDITOR ... can come in handy to hooks.
we need to remove this:
pathEnv := fmt.Sprintf("PATH=%s", os.Getenv("PATH"))
and just construct the array like:
hookEnvs := []string{a, b, c, os.Environ()...)
I tried something that also needed
HOME
. Should we enable all the host env vars to be passed to the hook commands?