computer (sh.itjust.works)
submitted 2 years ago by to c/linuxmemes@lemmy.world
 
you are viewing a single comment's thread
view the rest of the comments
[–] 24 points 2 years ago* (last edited 2 years ago) (2 children)

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

  • source
  • parent
  • hideshow 4 child comments