• ColdWater@lemmy.caOP
    link
    fedilink
    arrow-up
    3
    ·
    11 hours ago

    It could be nano but I had to press Q to exit which is not nano key binding (Ctrl + X), I never edit PKGBUILD in terminal before, I’ll edit it in Kate if I had to

      • ColdWater@lemmy.caOP
        link
        fedilink
        arrow-up
        1
        ·
        10 hours ago

        Dude you’re a time saver, it’s actually less a text editor I never heard of before after I removed it PKGBUILD revert back to what it was before, it probably come with man page package I installed recently

        • hallettj@leminal.space
          link
          fedilink
          English
          arrow-up
          3
          ·
          4 hours ago

          Less is not an editor, it’s a “pager” which is a read-only viewer for files, or for command output that doesn’t fit in a single screen, or whatever. Generally to control which you want programs use you set the PAGER environment variable.

          The old grandaddy pager was called “more”, as in “there’s more text than fits on the screen”. The successor is called “less”. For most purposes, less is more.

        • Fecundpossum@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          10 hours ago

          Another way to fix this, would have been to navigate to the pkgbuild file in question, right click, open with, Kate. I’m more familiar with Gnome than KDE but I assume there’s an option to make Kate your default for opening files of that type.

          • LouSlash@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            arrow-down
            1
            ·
            10 hours ago

            After my first comment i digged into the man page of paru and found that another, although temporary, way is to use -fm <command> flag