• radix@lemm.ee
    link
    fedilink
    arrow-up
    60
    ·
    edit-2
    1 year ago

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

    • lco@kbin.social
      link
      fedilink
      arrow-up
      34
      arrow-down
      1
      ·
      1 year 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…

      • radix@lemm.ee
        link
        fedilink
        arrow-up
        36
        ·
        1 year ago

        But .bashrc is executed, not displayed.

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

      • raubarno@lemmy.ml
        link
        fedilink
        arrow-up
        23
        ·
        edit-2
        1 year 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