• Digit@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 hours ago

        Almost tempting to change my name, or at least my nick (and avatar) for a git account hosting my fish based projects like fin. Almost.

      • Digit@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        Yup. Built for humans, not for computers from decades ago where characters mattered because bytes mattered more than human readability.

        “Finally! A shell for the 90s!” ;D

        Friendly, interactive, shell.

        Interactive… its the human that’s interacting with it… so… it makes sense.

        Happy to leave bash as my system shell, and have it, in its ~/.bashrc, detect if it’s an interactive session, and if so, launch fish, like so [[ $- != *i* ]] && return || fish. So then if ever (~ and it’s oh so scant rarely) I want to use bash, it’s only a ctrl-d keybind away to fall back to bash.

        ZSH is still comparably nice, once it undergoes significant reconfiguration. Fish is nice out of the box. The completion stuff, is just the first wow factor, and what a wow factor, and then there are more wow features to discover yet. :) It grows on you, even more than the initial wows of completion expedience. :)

  • YTG123@sopuli.xyz
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    It’s true that there is a very large transfer between violin and viola, but just the experience of playing multiple instruments, even if this similar, increases one’s value by a lot. Depending on the situation wherever you happen to be, demand for violists can be much greater than for violinists, so playing both rather than the violin alone is a big boost.

    • meep_launcher@sh.itjust.works
      link
      fedilink
      arrow-up
      4
      ·
      18 hours ago

      Oh absolutely. I’m a full time musician and the only way I’ve been able to do that is play 23 different instruments. Being good enough to play in a group is all you need- you get good really quick when money is on the line.

  • rtxn@lemmy.worldM
    link
    fedilink
    arrow-up
    84
    ·
    2 days ago

    People with deep knowledge of string instruments and/or shell languages are rapidly approaching your location.

    • Venus_Ziegenfalle@feddit.org
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 days ago

      The violin part kinda checks out tbh. It’s like saying a saxophone is basically a shiny clarinet. It’s musician ragebait but it’s not entirely false.

      • rtxn@lemmy.worldM
        link
        fedilink
        arrow-up
        5
        ·
        2 days ago

        At the end of the day, every instrument is just a mechanical-to-acoustic transducer with a resonating body to selectively amplify the desired notes and harmonics. The real question is whether a jackdaw qualifies as a sandwich.

        • pimento64@sopuli.xyz
          link
          fedilink
          arrow-up
          3
          ·
          15 hours ago

          This definition wouldn’t apply to harmonicas nor digital keyboards, nor bagpipes arguably.

          • rtxn@lemmy.worldM
            link
            fedilink
            arrow-up
            3
            ·
            15 hours ago

            Both harmonicas and bagpipes produce sound by passing air over one or multiple reeds (tuned to resonate at specific fundamental frequencies), inducing oscillations in the reeds, which modulate the air flow. Bagpipes use pipes to amplify the sound, and harmonicas use the cavity between the reed plate and the body, and often the player’s hand.

            A digital keyboard that doesn’t produce sound is just a fancy human interface device.

  • Seleni@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    4
    ·
    20 hours ago

    Technically a viola is actually a mini cello. I hope his knowledge of bash & zsh is better than his knowledge of musical instruments lol

    • alias_qr_rainmaker@lemmy.worldOP
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      i need to get familiar with fish. i’ve studied the syntax but i still have hardly used it, and if you really want to learn how to code something, you gotta keep typing it until it’s in your muscle memory.

      • Herzenschein@pawb.social
        link
        fedilink
        arrow-up
        13
        ·
        2 days ago

        While I do like fish syntax, you don’t really need to learn it. You can just use it for your interactive use in the terminal while writing your scripts in bash.

        • null@piefed.nullspace.lol
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 days ago

          This is the way. I’ve never even attempted to script anything in fish, but it’s just a great interactive shell OOTB. I think at most I have a colorscheme and an alias or 2.

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

            Scripting in fish is so much better than bash, holy. Reduced my scripts’ LOC by probably 50% and made them actually legible when coming back to them 6 months later. I converted all my personal scripts from bash to fish.

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

          this is basically what I did until I dropped fish for zsh because of annoyances with how it functioned.

          Scripting in fish is obnoxious though if you learned bash first, heavily recommend staying far away 😂

          Hard recommend staying in bash or at least zsh, at least you maintain compatibility with others if you ever decided to share your scripts.

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

            Scripting in fish is so much better than bash, holy. Reduced my scripts’ LOC by probably 50% and made them actually legible when coming back to them 6 months later. I converted all my personal scripts from bash to fish.

            What makes it “obnoxious”??

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

              I dislike heavily how flow control works on it, and the lack of indication where it starts to where it ends, the function layout, not to mention attempting to pipe anything via it. This combined with the fact that it’s a lesser used shell and as such has less of a presence online to research made it not worth the time and effort to actually use it. I swapped to ZSH which at least maintains a large POSIX compliance which makes it easier to share the scripts as well and also supports adding many of fish’s features.

              It may be nicer to read but, actually getting established, learning it, using it and then maintaining compatibility with other programs and scripts when using it, just made it not worth it. I have better things to do with my free time then to try and fight a shell every step of the way to make it look cleaner.

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

                I dislike heavily how flow control works on it

                You mean its if and switch statements? For and while loops? Just like bash and zsh has?

                the lack of indication where it starts to where it ends

                You mean the end keyword? The start of things should be clear enough. Keywords are used for them depending on what you’re starting. I like the fact that everything ends with the same keyword. Much simpler.

                the function layout, not to mention attempting to pipe anything via it

                Piping something “via the function layout”? I’m not even sure what that means. I’d love to know more if you would.

                maintaining compatibility with other programs and scripts when using it, just made it not worth it

                This should be fully transparent. It’s a shell. I switched all my scripts to fish, and my integration with my desktop environment was completely unchanged. It’s just text in and text out.

                I have better things to do with my free time th[a]n to try and fight a shell every step of the way to make it look cleaner.

                I mean… It took me like an hour to read through the documentation, and all the syntax is so small you can memorize the entire language.

                It comes with a nice web based documentation built in. And all the built-in commands have their own man page for easy reading, compared to the jumbled mess of zsh’s docs. I could never find a goddamn thing in zsh’s two handfuls of different man pages. Nothing was where I thought it would be.

                It kind of sounds like you were fighting fish rather than it fighting you, every step of the way. That sounds absolutely crazy compared to my experience.


                My experience with fish is that I finally understood what my shell was doing and how it works, compared to zsh. I even understood what bash was doing. zsh, no. And all these files it was leaving around my home directory.

                What I will concede is that you should not convert your shell scripts if you need portability. If your scripts will be on multiple computers, fish is a bad idea if you don’t control them all.

                Otherwise it feels like some other issue is bigger here, because fish is so much simpler. Coming from me who’s been scripting in bash and zsh for about 20 years, and zsh is the only one that has stumped me, and whose documentation I’ve been struggling with. Even bash’s is better. 💀

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

                  You mean its if and switch statements? For and while loops? Just like bash and zsh has?

                  No i mean the flow in general. It’s ugly and not transparent when compared to bash or any other language

                  the lack of indication where it starts to where it ends

                  Yes and no, I mean how it chooses to start and end, there is no punctuation, it seems to emulate a tab oriented language without being a tab oriented language.

                  Piping something “via the function layout”? I’m not even sure what that means. I’d love to know more if you would.

                  Two separate complaints, I dislike how they manage functions (but yes bash does similar on this case). Piping and redirecting are badly implemented and what would be an accepted pipe in ZSH or Bash will fail in fish. I made a script that had to pipe a file via wget and it wouldn’t function unless I used a pager which wasn’t needed in Bash or Zsh and wasn’t documented as a requirement anywhere on their piping or redirection documentation. Took me almost an hour of troubleshooting why the command was failing and how to fix it due to it.

                  I mean… It took me like an hour to read through the documentation, and all the syntax is so small you can memorize the entire language.

                  Maybe this has changed since I last tried about a year or two ago, but last time I tried to read the documentation it sucked hardcore and lacked examples of more advanced parts of the shell.

                  It kind of sounds like you were fighting fish rather than it fighting you, every step of the way. That sounds absolutely crazy compared to my experience.

                  I would rather take the path of least resistance for a program, with fish it had way too much resistance trying to use it, so I went to the path that had a lesser resistance, which was ZSH, and then just proceeded to add fish’s core capabilities to zsh. This let me use a scripting language that has a lot of documentation and examples to assist in learning, while having the benefits of the shell. Plus it lets me actually share the scripts with friends because it’s already hard to find someone on linux, and its even moreso difficult to find someone who uses fish shell.

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

            I tried using zsh again after having used fish for a while, but I just couldn’t do it. Trying to configure the ergonomics that fish ships OOTB into zsh was a pain, and I couldn’t get it to a satisfactory level.

            Regarding scripts, you don’t have to use the fish scripting language. Just keep writing your scripts in Bash, and as long as you use a shebang, it’ll work fine in fish.

            • Pika@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 days ago

              Yeah, that was what I was saying it wasn’t super clear. I was saying, just keep your scripts in Bash because it has better compatibility 👀

        • Lena@gregtech.eu
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Yeah that’s what I do to, I don’t need to write complex scripts anyway. Fish’s syntax seems interesting though.

        • alias_qr_rainmaker@lemmy.worldOP
          link
          fedilink
          arrow-up
          1
          ·
          2 days ago

          Python is my #1 language. It’s the one I always code in. But I also know javascript and bash/zsh (also Ruby but I haven’t written any ruby for years, so I’d need a refresher)

          • luciferofastora@feddit.org
            link
            fedilink
            arrow-up
            2
            ·
            1 day ago

            At my previous job, I had only barebones beginner skills in Java and absolutely no idea of Java EE when I started. I reckon you’d get back in the flow with Ruby quickly enough.

            But also, python is nice.

  • nialv7@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    2 days ago

    I once had the misfortune of having to read zsh source code…

    In unrelated news I no longer use zsh.

      • nialv7@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago
        /* Lasciate ogni speranza.                                                  *
         * This function is a nightmare.  It works, but I'm sure that nobody really *
         * understands why.  The problem is: to make it cleaner we would need       *
         * changes in the lexer code (and then in the parser, and then...).         */
        

        source

        there are more if you keep reading… (also, spoiler alert, this function doesn’t work, that was why i was looking at it.)

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

          It doesn’t surprise me in the least bit, considering how complex everything seems to be in zsh.

          Years ago, I was trying to understand how the completion system works. I never understood.

          Even the user-facing shit you need to put in your .zshrc in order to enable completion in the first place does not look like it’s made for a human to read. Not to mention that you need to enable it in the first place.

          Configuring zsh was such a mess for me, for years. I don’t know why I used it for so long. Glad I gave fish a shot.

    • alias_qr_rainmaker@lemmy.worldOP
      link
      fedilink
      arrow-up
      8
      ·
      2 days ago

      i’m all about oh-my-zsh. I mostly like it because it loads a random theme every time you run source ~/.zshrc, so you get exposed to a lot of different themes, so you can pick one that looks really nice. The one I’ve gone with was the most minimalist theme I could find. export ZSH_THEME="miloshadzic"

      • fonix232@fedia.io
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        Meh, I find OMZ a bit too opinionated.

        antidote with the right plugins + starship with the right prompt builder beats anything.

          • fonix232@fedia.io
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            In my opinion - and yes I know it’s punny - fish also belongs in the “too opinionated” category.

            It’s not a bad shell but overall I found it to be quite reluctant to work the way you want it, if that isn’t the way the developer meant it to be used. Which is fine, but again, it means that fish is opinionated.

          • wltr@discuss.tchncs.de
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            I tried to learn it, but failed. Looks like I’d love to use both, but I have no idea where to start. Any suggestions?

            • prettybunnys@piefed.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 days ago

              It might be easiest to work backwards with starship, see how it integrates with fish then see how to run fish.

              Then install fish, add starship to it.

              99% of my usage is around how it helps me navigate the terminal, I use bash for all my scripts lmao

              • wltr@discuss.tchncs.de
                link
                fedilink
                arrow-up
                1
                ·
                1 day ago

                That sounds quite good, actually. I mean, I have a gazillion bash scripts, but I can keep them. I think I don’t care about posix, or whatever it’s called, for my day-to-day navigating the shell.

      • rtxn@lemmy.worldM
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        2 days ago

        OMZ is overrated. It’s too much code for too little effect when most of the plugins boil down to aliases and prompt themes, and all you have to do is source them in your .zshrc anyway.

        I am by no means saying that the plugins and themes are useless. I’m saying that OMZ is unnecessary.

  • BoosBeau@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    2 days ago

    But… they literally used that post to tell people they play both the violin and the viola…

  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    2
    ·
    2 days ago

    Dude, people still think vi is important skills. I know ‘ed’, so the rest is just a waste.

    For that matter, just use cat, and be free of vietnam-era cult shit.