• raubarno@lemmy.ml
    link
    fedilink
    arrow-up
    24
    ·
    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

    • darcyOP
      link
      fedilink
      arrow-up
      20
      ·
      1 year ago

      true!! i meant echo neofetch >> .bashrc

        • darcyOP
          link
          fedilink
          arrow-up
          9
          ·
          1 year ago

          actually. i meant neofetch > bashrc, as in neofetch is better. checkmate

          /s

    • Rodeo@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

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

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