cm0002@lemmy.world to linuxmemes@lemmy.world · 1 month agoPosting for a friend lollemmy.worldexternal-linkmessage-square116fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkPosting for a friend lollemmy.worldcm0002@lemmy.world to linuxmemes@lemmy.world · 1 month agomessage-square116fedilink
minus-squaremutual_ayed@sh.itjust.workslinkfedilinkEnglisharrow-up0·1 month agoAlias is your friend. alias install=“sudo apt update && sudo apt install -y” install git
minus-squaredan@upvote.aulinkfedilinkarrow-up0·1 month 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_ayed@sh.itjust.workslinkfedilinkEnglisharrow-up0·edit-21 month 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.”