I thought it’d be a pain but installing programs through the terminal is actually so nice, I never would have expected it

    • Dumhuvud@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      16 hours ago

      I believe, these are Emacs shortcuts. There’s also set -o vi in bash, but I’ve never used it, so can’t vouch for it.

      • Hawke@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        12 hours ago

        That’s good to know. It’s interesting that the other commenter thinks emacs shortcuts are illogical. I’ll make my best guesses at the logic

        • ctrl-a/ctrl-e for start/end of line

        a is the beginning of the alphabet; e for end (of line)

        • ctrl-u to clear the command you’ve typed so far but store it into a temporary pastebuffer
        • ctrl-y to paste the ctrl-u’d command

        No idea here. Seems similar to nano with k-“cut” and u-”uncut”.

        • ctrl-w to delete by word

        w for word obviously.

        • ctrl-r to search your command history
        • alt-b/alt-f to move cursor back/forwards by word

        r reverse, b back, f forward. Not sure why alt vs control though; presumably ctrl+b and ctrl+f do different things although I know emacs likes to use Alt (“Meta”) a lot.

        • MedicsOfAnarchy@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          9 hours ago

          In the 1980s, Digital Equipment Corporation had a word processor, WPS. Ctrl-u cleared the line you were typing and put it into the paste buffer. Maybe legacy usage?

      • apelsin12@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        15 hours ago

        Explains why they are so illogical! Unfortunately i think its better to just learn the defaults since i remote into lots of servers where i dont carry my config