This really triggered an itch in me and I’m having trouble finding answers. It sounds like .profile might get sourced by your desktop environment when you log in but I’m having trouble finding out one way or the other. Every search I make just ends up with people asking about shells.
But what would I want in a login shell that I don’t also want in a non login shell?
Presumably just to get rid of unnecessary stuff that would slow down the start of all bash instances. Also aliases that could fuck with scripts
This really triggered an itch in me and I’m having trouble finding answers. It sounds like
.profile
might get sourced by your desktop environment when you log in but I’m having trouble finding out one way or the other. Every search I make just ends up with people asking about shells.