• Technus ( Technus@lemmy.zip ) 
    link
    fedilink
    arrow-up
    8
    ·
    2 years ago

    Fish is a great shell, but whenever I SSH into another machine I end up having to do everything in Bash anyway. So the fact that Fish is so different often ends up being a detriment, because it means I have to remember how to do things in two different shells. It was easier to just standardize on Bash.

    I might try daily driving it again when this release hits the stable repos, I dunno.

    • Zykino ( Zykino@programming.dev ) 
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I only have to “quotes” strings that contains globs. The rest mostly work or use the newer/recommanded way to do things for posix shells.

      But I must admit, I only use it interactively. For scripts I #!/bin/{,ba}sh. I will use something else once it won some/most the distro preinstalls (either nu, elvish, fish, but for now it’s sadly python).

  • Corr ( Corr@lemm.ee ) 
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    I would want to continue to write my scripts with sh or bash, but is this something worth adopting for just regular shell navigation?
    I’ve thought about it previously but it not being a default shell makes it reasonably less appealing for me.

    • LiveLM ( LiveLM@lemmy.zip ) 
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 years ago

      This is what I do.
      Fish for daily usage and when I need to write a script or use a snippet from the web, I drop to bash for a sec. Totally worth it.

      • Corr ( Corr@lemm.ee ) 
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        I’ll check it out then. Work involves using bash exclusively because it’s embedded systems but I’ll see if fish suits me for personal use. Thanks for the suggestions

    • comfy ( comfy@lemmy.ml ) 
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      I felt that way too, but testing it for a few days on one device changed my mind. Their pitch rings true, it has so many basic QoL features that make you wonder why this wasn’t added to bash two decades ago.

      For me, the only bash->fish gripe I’ve had was it took me a little while to get used to having to put quotes around URLs with a ? to stop it trying to wildcard, but again, their rationale makes perfect sense and really I admit it was bad for bash to simply accept that string in the first place.

    • Ephera ( Ephera@lemmy.ml ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 years ago

      I just set Fish as the shell that my terminal emulator should launch. The actual default/system shell can stay Bash. And then, yeah, if you put Bash into the shebang, all the scripts will run with it, and you can just execute bash in your Fish shell at any point to drop into a Bash shell.

      Occasionally, I’ll realize some syntax discrepancy where I’ve kind of learned it the Fish way, but because I’m only using Fish interactively, there’s really not a ton of syntax that I’m interacting with.

      And yeah, ultimately I find it well worth it. In particular the history-based auto-suggestions are really useful. People will ask me what that command was again and I’ll start typing into my shell and it just pulls out exactly what I wanted in quite a lot of cases.

        • Ephera ( Ephera@lemmy.ml ) 
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 years ago

          Well, I’m talking about my team members at my dayjob. I’m a software engineer.

          But it’s also a lot less explicit than what you’re probably imagining. It’s rather that we have a meeting and realize that a problem re-occurred which we thought we solved months ago. So, then everyone starts collectively scratching their head and somewhat rhetoric questions might be thrown into the room, i.e. “Oh man, do you still remember how we did that?”.

          Then I might start typing the command how I think it would probably begin, often with the intention of then putting --help at the end to try to jump-start my memory. And then that’s where Fish often jumps in and tells me that I’m apparently typing the exact beginning letters of the command that we used a few months ago.
          Sometimes this even happens when I have no recollection that I ran a given command before, and someone’s just generally asking how to do a certain task…

  • wiki_me ( wiki_me@lemmy.ml ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    I don’t want to start a holy war. but they say it should bring more contributors and a more fun programming language should mean more contributions but contribution metrics on openhub show no meaningful improvement IMO.