fix: source agent config in non-login shells too #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-non-login-shells"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
/etc/profile.d/scripts only run in login shells. When you rundocker exec bash(the default), you get a non-login shell and the env vars from AGENTS.md are not loaded.Fix
Also source the agent config from
/etc/bash.bashrcwhich runs for all interactive bash shells.Testing
After rebuilding: