There's .bashrc, .profile, and .bash_profile. I know they are used in different situations.
I want to prepend ~/bin to PATH always, e.g. regardless of whether it's an interactive session. I want it to work also when someone sudos as me.
How can I do that? When someone sudos as me, I see that none of those above 3 files are used. I want to always reliably prepend ~/bin to the PATH when my user account gets used, including when someone sudos as me.
EDIT: Clarification: No, contrary to certain duplicate question suspicion, this is not about making alice's PATH/environment carry over to bob when alice runs "sudo bob some-program". This is about making bob always have a PATH that has /home/bob/bin in front whenever bob is newly used to run a process including, but not necessarily limited to interactive sessions, non-interactive sessions, and being sudo'ed, but especially when being sudo'ed because that seems the most problematic case.