Didn’t know about auto populating search queries, abbreviations, string scripting, and using private mode.

  • Gamma@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    3 days ago

    Scrubbing through the video, this hurts my soul

    echo $(echo $STRING | sed 's/World/Bash/')
    

    For variables bash has PE forms:

    echo ${STRING/World/Bash}
    

    I miss these too much when I try Fish.

      • Gamma@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 day ago

        Nothings bad about it. I don’t think it’s strictly better or worse. Just

        • I’m used to it
        • The comparison in the video was just disingenuous.
        • Laser@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          I haven’t watched the video, but maybe it wasn’t in bad faith, but the author didn’t know better. bash can be arcane at times, like when I open my old scripts I often have no clue what exactly is going on without comments. Substring removal comes to mind.