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

  • thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    10 hours ago

    Keep another terminal open when you try this.

    I recommend leaving Bash and the standard terminal at default settings mostly and don’t tinker too much with it. Then install Zsh, tinker with it as you like and set Zsh as the default shell for your alternative terminal (in example Kitty). In case something goes wrong, then you will be able to load a safe environment, and it shouldn’t f…un up your next login either.