darcy@sh.itjust.workscake to linuxmemes@lemmy.world · 2 年前computersh.itjust.worksimagemessage-square48fedilinkarrow-up1453arrow-down118
arrow-up1435arrow-down1imagecomputersh.itjust.worksdarcy@sh.itjust.workscake to linuxmemes@lemmy.world · 2 年前message-square48fedilink
minus-squareradix@lemm.eelinkfedilinkarrow-up61·edit-22 年前Why would you pipe edit: redirect neofetch into your .bashrc?
minus-squarelco@kbin.sociallinkfedilinkarrow-up35arrow-down1·2 年前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…
minus-squareradix@lemm.eelinkfedilinkarrow-up37·2 年前But .bashrc is executed, not displayed. Maybe they meant to say echo neofetch >> ~/.bashrc.
minus-squareraubarno@lemmy.mllinkfedilinkarrow-up24·edit-22 年前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
minus-squaredarcy@sh.itjust.workscakeOPlinkfedilinkarrow-up19·2 年前true!! i meant echo neofetch >> .bashrc
minus-squaredarcy@sh.itjust.workscakeOPlinkfedilinkarrow-up9·2 年前actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s
minus-squareRodeo@lemmy.calinkfedilinkarrow-up4·2 年前 It’s a dangerous command because a single > destroys your .bashrc. This is why you have a dotfiles repository, you noob!
Why would you
pipeedit: redirect neofetch into your .bashrc?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…
But .bashrc is executed, not displayed.
Maybe they meant to say
echo neofetch >> ~/.bashrc
.It won’t work. It’s a dangerous command because a single
>
destroys your.bashrc
. You may want eitherecho 'neofetch' >> .bashrc
orneofetch | sed -e 's:%:a:g' | sed -e "s:^\\(.*\\)$:printf '\1\\\\n':" >> .bashrc
or something of that kind.EDIT: tested out the latter command
true!! i meant
echo neofetch >> .bashrc
Who’s the true noob now? Smh
(/s)
actually. i meant neofetch > bashrc, as in neofetch is better. checkmate
/s
This is why you have a dotfiles repository, you noob!
That’s a redirection, not a pipe.
Good catch.
Exactly, that’s bloat