I’m moving my posts from Reddit to Lemmy before delete them.

This post is from 2020-09-03.

  • Aldileon@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    What tool are u using for transferring your posts from reddit? Or is this done manual?

  • Thaurin@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Try fish with the tide plugin and the fzf plugin. I can never go back to anything else.

      • Thaurin@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Why is that? You can still use bash to interpret your bash scripts. Where does it annoy you?

        • samsy@feddit.de
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          I have to switch to bash first, and wonder days later, why I can’t find it (obviously) in my fish history.

          • Thaurin@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            1 year ago

            I mean, doesn’t the script have a hash bang pointing to the bash interpreter?

            #!/usr/bin/bash
            

            Or you can just run it like:

            bash script.sh
            
  • Lemmchen@feddit.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Okay, you guys get the once in a liftetime chance to convince me that Bash is not the way to go. I’ll eagerly await your proposals.

    • Gamma@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 year ago

      There are two massive points no one has mentioned yet.

      • Quoting every expansion isn’t necessary in Zsh. Parameters don’t split or glob by default.
      • $array actually expands to every element in an array.

      Compare this between Bash and Zsh:

      a=('/* hello */' 'world!' '  ')
      printf '"%s" ' $a
      
      • Zucca@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        1 year ago

        $array actually expands to every element in an array.

        Very convenient. But ~every shell script is written in bash or POSIX(y) sh. When I need to write shell scripts I begin with busybox sh compability. If it turns out to be too complex, I’ll convert to bash. This is because if I ever would publish the script it would have better changes to be accepted as a PR for example. Yes. Bash is a mess. I don’t even like it that much. It’s okay. But it’s more standard then zsh. Although I’ve seen the tides turn on some occasions, like macOS.

        Maybe some day I’ll give zsh a second chance.

        • Gamma@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          I used to write Bash more than anything, but now the things I write are either simple enough to keep POSIX or complex enough that I miss the extra niceties Zsh provides.

          • zzz@feddit.de
            link
            fedilink
            English
            arrow-up
            0
            ·
            1 year ago

            but now the things I write are either simple enough to keep POSIX or complex enough that I miss the extra niceties Zsh provides.

            Well said!