β² 432 βΌ computer (sh.itjust.works) submitted 2 years ago by darcy@sh.itjust.works to c/linuxmemes@lemmy.world 47 comments fedilink hide all child comments
[β] radix@lemm.ee 61 points 2 years ago* (last edited 2 years ago) (3 children) Why would you pipe edit: redirect neofetch into your .bashrc? permalink fedilink source hideshow 6 child comments replies: [β] lco@kbin.social 34 points 2 years ago (2 children) 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... permalink fedilink source parent hideshow 4 child comments replies: [β] radix@lemm.ee 37 points 2 years ago But .bashrc is executed, not displayed. Maybe they meant to say echo neofetch >> ~/.bashrc. permalink fedilink source parent [β] raubarno@lemmy.ml 24 points 2 years ago* (last edited 2 years ago) (2 children) 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 permalink fedilink source parent hideshow 4 child comments replies: [β] darcy@sh.itjust.works [S] 19 points 2 years ago (1 child) true!! i meant echo neofetch >> .bashrc permalink fedilink source parent hideshow 2 child comments replies: [β] xan1242@lemmy.ml 8 points 2 years ago (1 child) Who's the true noob now? Smh (/s) permalink fedilink source parent hideshow 2 child comments replies: [β] darcy@sh.itjust.works [S] 9 points 2 years ago actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s permalink fedilink source parent [β] Rodeo@lemmy.ca 4 points 2 years ago It's a dangerous command because a single > destroys your .bashrc. This is why you have a dotfiles repository, you noob! permalink fedilink source parent [β] MonkderZweite@feddit.ch 12 points 2 years ago (1 child) That's a redirection, not a pipe. permalink fedilink source parent hideshow 2 child comments replies: [β] radix@lemm.ee 4 points 2 years ago Good catch. permalink fedilink source parent [β] MigratingtoLemmy@lemmy.world 2 points 2 years ago Exactly, that's bloat permalink fedilink source parent
[β] lco@kbin.social 34 points 2 years ago (2 children) 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... permalink fedilink source parent hideshow 4 child comments replies: [β] radix@lemm.ee 37 points 2 years ago But .bashrc is executed, not displayed. Maybe they meant to say echo neofetch >> ~/.bashrc. permalink fedilink source parent [β] raubarno@lemmy.ml 24 points 2 years ago* (last edited 2 years ago) (2 children) 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 permalink fedilink source parent hideshow 4 child comments replies: [β] darcy@sh.itjust.works [S] 19 points 2 years ago (1 child) true!! i meant echo neofetch >> .bashrc permalink fedilink source parent hideshow 2 child comments replies: [β] xan1242@lemmy.ml 8 points 2 years ago (1 child) Who's the true noob now? Smh (/s) permalink fedilink source parent hideshow 2 child comments replies: [β] darcy@sh.itjust.works [S] 9 points 2 years ago actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s permalink fedilink source parent [β] Rodeo@lemmy.ca 4 points 2 years ago It's a dangerous command because a single > destroys your .bashrc. This is why you have a dotfiles repository, you noob! permalink fedilink source parent
[β] radix@lemm.ee 37 points 2 years ago But .bashrc is executed, not displayed. Maybe they meant to say echo neofetch >> ~/.bashrc. permalink fedilink source parent
[β] raubarno@lemmy.ml 24 points 2 years ago* (last edited 2 years ago) (2 children) 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 permalink fedilink source parent hideshow 4 child comments replies: [β] darcy@sh.itjust.works [S] 19 points 2 years ago (1 child) true!! i meant echo neofetch >> .bashrc permalink fedilink source parent hideshow 2 child comments replies: [β] xan1242@lemmy.ml 8 points 2 years ago (1 child) Who's the true noob now? Smh (/s) permalink fedilink source parent hideshow 2 child comments replies: [β] darcy@sh.itjust.works [S] 9 points 2 years ago actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s permalink fedilink source parent [β] Rodeo@lemmy.ca 4 points 2 years ago It's a dangerous command because a single > destroys your .bashrc. This is why you have a dotfiles repository, you noob! permalink fedilink source parent
[β] darcy@sh.itjust.works [S] 19 points 2 years ago (1 child) true!! i meant echo neofetch >> .bashrc permalink fedilink source parent hideshow 2 child comments replies: [β] xan1242@lemmy.ml 8 points 2 years ago (1 child) Who's the true noob now? Smh (/s) permalink fedilink source parent hideshow 2 child comments replies: [β] darcy@sh.itjust.works [S] 9 points 2 years ago actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s permalink fedilink source parent
[β] xan1242@lemmy.ml 8 points 2 years ago (1 child) Who's the true noob now? Smh (/s) permalink fedilink source parent hideshow 2 child comments replies: [β] darcy@sh.itjust.works [S] 9 points 2 years ago actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s permalink fedilink source parent
[β] darcy@sh.itjust.works [S] 9 points 2 years ago actually. i meant neofetch > bashrc, as in neofetch is better. checkmate /s permalink fedilink source parent
[β] Rodeo@lemmy.ca 4 points 2 years ago It's a dangerous command because a single > destroys your .bashrc. This is why you have a dotfiles repository, you noob! permalink fedilink source parent
[β] MonkderZweite@feddit.ch 12 points 2 years ago (1 child) That's a redirection, not a pipe. permalink fedilink source parent hideshow 2 child comments replies: [β] radix@lemm.ee 4 points 2 years ago Good catch. permalink fedilink source parent
[β] MigratingtoLemmy@lemmy.world 2 points 2 years ago Exactly, that's bloat permalink fedilink source parent