• Lorem Ipsum dolor sit amet@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    7 hours ago

    I would really recommend you try fish.

    It has a lot of nice autocomplete features and handles functions much better than bash. It has a very sensible autoconfig so you can just install and try it.

    Zsh can be configured in quite a lot of ways. It’s default config is quite similar to bash.

    • ErenOnizuka@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      7 hours ago

      What does it autocomplete? Filenames? Bash can do that too, right? I just hit the tab key and it’s written there.

      And with functions you mean in scripts? How does it handle functions better?

      • Lorem Ipsum dolor sit amet@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        5 hours ago

        Autocompletions in fish also take history into account, which saves you a lot of typing in the long run.

        Fish shell script is much more sensibly constructed than bash so it’s just much easier to write a script in fish.

        • voodooattack@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          3 hours ago

          Fish was amazing when I first discovered it, but I found it had too many problems for me to effectively use it. Having to adapt existing bash/zsh scripts was a major problem for me.

          So I went the other way around and managed to get all of the Fish features I wanted working under zsh using atuin, starship, and other misc. oh-my-zsh plugins to fill the gaps.

          Best part: I used a git-controlled home-manager setup to do it so I can activate my entire environment on a fresh machine/server in minutes after I clone it.