I’ve done something similiar to this over the years for organization purposes and not having to change much between shells except add a path. You can also add cases that check your shell and do something slightly different if needed.

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    23 hours ago

    I still write most scripts for bash, but for interactive use fish is just so much better out of the box.

    • nycki@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      21 hours ago

      this is my sticking point with fish. I still need to know bash for writing portable scripts, so its hard to justify scripting in fish.

      • logging_strict@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        6 hours ago

        that’s actually a really good argument for not using either.

        Taking a step back discussing shells seems like a never ending hell loop.

        Sometimes the only way to win is not to play the game.

        Use python and stop being stuck in the distant past.