Hello there :)

As far as I know (searched through the web), editing/navigating a multiline in bash is not possible and opening nano, pasting and editing is to much friction I want to get rid off.

Do you have any way to speed up the process?

example of multiline:

echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Thank you :)

  • @gartheom
    link
    English
    51 year ago

    As soon as a bash command gets to multiple lines, i save it as a bash script and then edit it in a text editor.

    • @deepdiveOP
      link
      English
      11 year ago

      Thank you for your response :) But that’s actually what I don’t want to do…

      It’s not about looking pretty, I like to navigate freely like CTRL-E, CTRL-A, ALT-B, ALT-F… speeds up the process and is frictionless (like your link suggests it :P). Sometimes I copy/past an already written command in the CLI with multilines and not being able to navigate thourgh them is frustrating !