I just realized that you can run a command at login by appending it to your .bashrc
For instance, I added a curl pointing to a certain address that immediately upon login returns a message that tells me whether I’m connected to my VPN provider or not.
Sorry for the beginner revelation. Just thought it was cool. :3


https://www.reddit.com/r/linux/comments/1p6orz/bashrc_bash_profile_inputrc_profile_xprofile/
so many persistence mechanisms i can add my malware to!
The great thing about fish is that it doesn’t have this crazy tree.
I use zsh… It’s still complex enough to be an issue. I suspect that bash’s complexity might make it simpler for common use-cases without having to understand it.
Help explain this to me. I was under the impression that non-interactive shells are what happens when you execute a bash script, right? When I ssh into the head node of a compute cluster at work (so non-login, I assume) and run a script, why don’t my aliases get recognized and only accepts $BASH_ENV? According to this chart, they should get recognized
Not that simple sadly I’m going to have to RTFM you…
Clear as day. Best summary ever.