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
[–] 61 points 2 years ago* (last edited 2 years ago) (3 children)

Why would you pipe edit: redirect neofetch into your .bashrc?

  • source
  • hideshow 6 child comments
  • [–] 34 points 2 years ago (2 children)

    so that everytime you launch a terminal, your neofetch data is displayed. Because wow, neofetch!!!

    It doesn't really make sense, since the data would be outdated anyway if piped into .bashrc that way...

  • source
  • parent
  • hideshow 4 child 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