darcy to [email protected] • 2 years agocomputersh.itjust.worksimagemessage-square48fedilinkarrow-up1435
arrow-up1435imagecomputersh.itjust.worksdarcy to [email protected] • 2 years agomessage-square48fedilink
minus-squareradixlinkfedilink60•edit-22 years agoWhy would you pipe edit: redirect neofetch into your .bashrc?
minus-squarelcolinkfedilink33•2 years agoso 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-squareraubarnolinkfedilink23•edit-22 years agoIt 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-square@[email protected]linkfedilink3•2 years ago It’s a dangerous command because a single > destroys your .bashrc. This is why you have a dotfiles repository, you noob!
minus-squaredarcyOPlinkfedilink9•2 years agoactually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s
minus-squareradixlinkfedilink34•2 years agoBut .bashrc is executed, not displayed. Maybe they meant to say echo neofetch >> ~/.bashrc.
Why would you
pipeedit: redirect neofetch into your .bashrc?Exactly, that’s bloat
That’s a redirection, not a pipe.
Good catch.
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…
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
This is why you have a dotfiles repository, you noob!
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
But .bashrc is executed, not displayed.
Maybe they meant to say
echo neofetch >> ~/.bashrc
.