Do you regain control inside the environment you expect, or outside of it? (Wondering, since we’re seeing an exit here).
I do see Direnv hangs when a subprocess doesn't exit(?) · Issue #755 · direnv/direnv · GitHub. IDK if that would be getting tripped by the running PG processes? Does it go ahead and continue if you try to enter, wait for it to hang, and then kill the pg processes from outside of the shell?