Skip to content

Commit 65c0170

Browse files
committed
add helpful env vars during shell + run
1 parent 8f1f0dc commit 65c0170

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/impl/devbox.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,10 @@ func (d *Devbox) computeNixEnv(ctx context.Context, usePrintDevEnvCache bool) (m
764764
// Append variables from current env if --pure is not passed
765765
currentEnv := os.Environ()
766766
env, err := d.parseEnvAndExcludeSpecialCases(currentEnv)
767+
env["DEVBOX_PROJECT_ROOT"] = d.projectDir
768+
env["DEVBOX_CONFIG_DIR"] = d.projectDir + "/devbox.d"
769+
env["DEVBOX_PACKAGES_DIR"] = d.projectDir + "/.devbox/virtenv/.wrappers"
770+
767771
if err != nil {
768772
return nil, err
769773
}

0 commit comments

Comments
 (0)