feat: enhance macOS local shell behavior to mirror Terminal.app login shell environment