• Mwa@thelemmy.club
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    1 day ago

    i am using ZSH cause Fish is not POSIX compliant,which made it annoying to run scripts without rewriting them.

      • Mwa@thelemmy.club
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        edit-2
        1 day ago

        how about if its not in a sh file,its common for scripts to use sh or bash instead. but am just gonna stick to ZSH anyways

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          13
          ·
          1 day ago

          Linux doesn’t generally use extensions to decide what shell to use, so it doesn’t matter if it’s an sh file or not.

          If it uses bash of course you can substitute #!/bin/bash

          And of course you can use whatever shell you want, just saying that POSIX-compliance is not really relevant since the script can specify what shell it needs.

  • xxxb@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    20 hours ago

    When I installed freeBSD for the first time, I was so confused when !! didn’t work.

  • __Lost__@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    2 days ago

    Sometimes I think I’m the only linux user who doesn’t care about their terminal emulator. I use whatever came installed. I assume it’s bash? I don’t know, but anything i want to do is supported by all of them.

    • four@lemmy.zip
      link
      fedilink
      English
      arrow-up
      48
      ·
      2 days ago

      Akchually, those are shells, not terminal emulators.

      Which I guess confirms that you really don’t care. Whatever works for you, works for you :)

    • Valmond@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      Yesh, I’m a not spending time configuring (and fixing) the shell.

      If I want something hairy I’ll use Python (or even C/C++).

  • inzen@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    1 day ago

    I use fish because it was the default in cachyos and decided to give it a fair shake. I like the built in syntax highlighting and fancy autocomplete but I miss bash scripting and built in commands that replace standard commands can be weird sometimes. I have not tried scripting fish, to lazy to learn yet another scripting language, especially if bash is the (almost) de-facto standard.

    • ferret@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago

      You can always just continue using bash scripting, with a bash shebang in your scripts, if you miss it

      • Gumus@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        5
        ·
        1 day ago

        That’s what I do. Fish is great as interactive shell, scripts don’t benefit that much from it and I can use what’s familiar.

  • Dagnet@lemmy.world
    link
    fedilink
    English
    arrow-up
    56
    arrow-down
    1
    ·
    2 days ago

    imo fish is the best out of the box for me, but I just use bash cause its everywhere

    • merc@sh.itjust.works
      link
      fedilink
      arrow-up
      20
      ·
      2 days ago

      Yeah, that’s where this meme fails. BASH is the default and has been for decades. Most people are not Gigachad.

      I’ll accept FISH as being for babies, Zsh as being for Emo types or extra nerdy people. SH being for white beards makes sense.

      BASH is:

      IT Guy

      • elephantium@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 days ago

        I used a macbook for work for a while with zsh in the terminal. IDK whether I qualify as emo, but I am nerdy. I only think of myself as regular nerdy, though, not extra nerdy.

        • merc@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          Was zsh the default at the time? Or did you switch to zsh? AFAIK the new default is BASH, but it was zsh for a while.

          IMO, your level of nerdiness is much higher if you change the default shell.

          • elephantium@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            I had to go back and check. Apple says that the default changed from bash to zsh in Catalina (10.15). I seem to recall a message coming up on the machine about zsh. I definitely remember poking around at config files and looking at iTerm2 vs. the default terminal app at the time.

            Does that make me extra nerdy? IDK. I can tell you that I was more focused on “What’s going to be comfortable to work with” vs. nerding out on shell differences.

            I do miss homebrew now that I’m working on a Windows laptop.

            • merc@sh.itjust.works
              link
              fedilink
              arrow-up
              1
              ·
              1 day ago

              Maybe I remember wrong, but my memory is that at one point MacOS had zsh as the default and then switched to BASH, and then maybe back to zsh again. But, since Internet search is broken these days, I can’t find anything about that.

    • Skullgrid@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      I’m not learning shit that can’t run on everything.

      Source : I got a fistfull of salesforce certs in order to toe the line in my previous job, and I am currently looking for work.

    • mmmm@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      I use bash because gentoo’s portage has a hard dependency on it so in my mind it doesn’t make much sense to install and keep yet another shell just because colors and autocompletion. If they ever get rid of the bashisms in portage I’d surely consider moving to fish, but getting rid of the bashisms in portage means that portage could be ported to the BSDs one more time and we could have Gentoo/BSD again

  • obnomus@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 days ago

    I think I’m using fish and it works great, I love alt+s thing and auto complete thingy.

  • mystic-macaroni@lemmy.ml
    link
    fedilink
    arrow-up
    13
    arrow-down
    1
    ·
    2 days ago

    I can’t begin to say how superior my fish rice is to any alternative. So I won’t. And I’ll leave yall to flame me for implying it.

    • flying_sheep@lemmy.ml
      link
      fedilink
      arrow-up
      10
      ·
      2 days ago

      That’s a paradox. POSIX shells are all bad because POSIX demands bad syntax.

      You can have pain word strings without also having weird “variables auto-explode into words” bullshit.

      That’s why I use nushell. It has lists. You do cmd ...$some_list to call a command on arguments from a list.

      • Sivecano@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        I’m ok with that part, I’m talking more performance and convenience. POSIX isn’t the most amazing but it’s ok. And whether I like it or not, I’ll have to use a posix-compatible shell if I want to run most scripts.

        • flying_sheep@lemmy.ml
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          I luckily don’t have to modify scripts these days so I’ll just use bash to run them if there’s no better alternative around. And usually it is, few things are only available as bespoke shell script

  • muhyb@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    2 days ago

    Funny story, in my first years of Linux, I always thought sh was the only way to run downloaded programs in the terminal. I must have seen it on some forum and learned it that way. Much later I learned that I could just type this ./program and run them.

    • rumschlumpel@feddit.org
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      2 days ago

      Much later I learned that I could just type this ./program and run them.

      TBF that does often require that you chmod +x them. Sometimes, that’s not worth the effort …

      • muhyb@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        That actually makes sense. Maybe that was the reason why I saw it in the first place. Lazy people in works. :)