It can’t hurt to share some of you current helpers. Either someone else might get inspired by or in some cases you get suggestions how to make it better. Bash, Zsh, Fish or whatever shell script, command or alias (or abbreviation) you have, share here. Always fun to do so! I share mine in the comments, just like everybody else.

  • thingsiplay@lemmy.mlOP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 hours ago

    Interesting. I can’t comment much about the commands itself, but want to quickly explain how to format. To start a code block, put 3 ticks in row like ``` in one line. Everything after is a code block until 3 ticks end it. You can also set what type of (programming) language it is, for the coloring. Just add bash after the 3 ticks in the opening block like ```bash . That’s all to it. I don’t know hat languages are supported, but it works for Bash and Python in example. A full code block would be typed like this:

    ```bash
    hello() {
        echo "Hello World!"
    }
    ```
    

    which is then rendered as

    hello() {
        echo "Hello World!"
    }
    
    • eldavi@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      38 minutes ago

      the ticks work and now you can see my badly formatted bash in all of it’s ugly glory. lol

      thanks.