cm0002@lemmy.world to linuxmemes@lemmy.world · 8 days agoPosting for a friend lollemmy.worldimagemessage-square128linkfedilinkarrow-up1867arrow-down113
arrow-up1854arrow-down1imagePosting for a friend lollemmy.worldcm0002@lemmy.world to linuxmemes@lemmy.world · 8 days agomessage-square128linkfedilink
minus-squaremutual_ayedlinkfedilinkEnglisharrow-up3arrow-down2·8 days agoAlias is your friend. alias install=“sudo apt update && sudo apt install -y” install git
minus-squaredan@upvote.aulinkfedilinkarrow-up7·8 days agoI’d recommend avoiding aliases that conflict with regular commands, and there’s a standard Linux command called install. https://man7.org/linux/man-pages/man1/install.1.html If you’re going to always pass the -y flag then I’d add --no-install-recommends too.
minus-squaremutual_ayedlinkfedilinkEnglisharrow-up2·edit-28 days agoOh sorry. install is already a part of make/cmake as well, so it’d break any of those workflows also. The joke I thought I was making was “I’m too lazy to type out what I want, let’s just break the system instead.”
Alias is your friend.
alias install=“sudo apt update && sudo apt install -y”
install git
I’d recommend avoiding aliases that conflict with regular commands, and there’s a standard Linux command called
install
. https://man7.org/linux/man-pages/man1/install.1.htmlIf you’re going to always pass the -y flag then I’d add --no-install-recommends too.
Oh sorry.
install is already a part of make/cmake as well, so it’d break any of those workflows also.
The joke I thought I was making was “I’m too lazy to type out what I want, let’s just break the system instead.”