A devastated Software Systems student, libre software promoter. Sometimes I draw pixel art. Very fond of classical Computer Science and Touhou project.

Autism® Inside™

  • 0 Posts
  • 12 Comments
Joined 2 years ago
cake
Cake day: March 28th, 2023

help-circle








  • raubarno@lemmy.mltolinuxmemes@lemmy.worldcomputer
    link
    fedilink
    arrow-up
    24
    ·
    edit-2
    2 years ago

    It won’t work. It’s a dangerous command because a single > destroys your .bashrc. You may want either echo 'neofetch' >> .bashrc or neofetch | sed -e 's:%:a:g' | sed -e "s:^\\(.*\\)$:printf '\1\\\\n':" >> .bashrc or something of that kind.

    EDIT: tested out the latter command


  • Terminal-based scriptable text editor, continuation of one of the first interactive programs in the world (vi), so it has a lot of legacy User Experience, which seems unintuitive for modern users. For instance, it does not automatically write when you launch a program. Instead, you are set in so-called “Normal mode”, which maps all the keyboard keys to text-editing macros and acts as a bridge between “Insert mode” (for typing text) and “Command mode” (for application control and . If you’re on “Insert mode” and want to save your edits and quit, you need to press ESC, to switch back to the Normal mode, and type in :wq and press Enter.