• ErenOnizuka@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    6
    ·
    4 days 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?

    • 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
        3
        ·
        4 days 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.

        • Digit@lemmy.wtf
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 days ago

          Why bother adapting existing scripts?

          They’re happy running as they are in bash/zsh.

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

            They were mine. People rice their DEs, which I don’t care much about tbh… but I rice my shell even more obsessively.