Skip to content

Conversation

mcdonc
Copy link
Contributor

@mcdonc mcdonc commented May 14, 2025

FWIW, I've now tested each devenv command using my exec-zsh-within-enterShell thing and at https://github.com/devenv-zsh and I think the only problem I cannot work around without modifying devenv source is this one:

  • At the moment "devenv up" / "devenv processes up" must be run from within an existing devenv shell, because if you invoke it from without, enterShell will exec zsh before the process manager script runs.

This is because there is no reliable way to detect whether enterShell is being invoked by a call to "devenv shell" or from a call to "devenv processes up". This PR sets an environment variable that distinguishes these two situations from each other.

See also #36

@mcdonc
Copy link
Contributor Author

mcdonc commented May 14, 2025

Ugh, not sure why all those stray commits came along for the ride. I'm hoping you can squash them out if you merge it, because the diff is correct.

…est, remove stray debugging commands and shellcheck settings
@domenkozar domenkozar merged commit 869e2d7 into cachix:main May 15, 2025
@mcdonc mcdonc deleted the mcdonc-add-devenv-cmdline branch May 15, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants