• radix
    link
    fedilink
    2
    edit-2
    2 years ago

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

    • lco
      link
      fedilink
      32 years ago

      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…

      • raubarno
        link
        fedilink
        1
        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

        • darcyOP
          link
          fedilink
          12 years ago

          true!! i meant echo neofetch >> .bashrc

        • @Rodeo@lemmy.ca
          link
          fedilink
          12 years ago

          It’s a dangerous command because a single > destroys your .bashrc.

          This is why you have a dotfiles repository, you noob!

      • radix
        link
        fedilink
        12 years ago

        But .bashrc is executed, not displayed.

        Maybe they meant to say echo neofetch >> ~/.bashrc.