MousePotatoDoesStuff@lemmy.world to Linux@lemmy.worldEnglish · 16 days agoUsing alias for a more Trek-like sudo experience :Dlemmy.worldexternal-linkmessage-square7fedilinkarrow-up146arrow-down13file-text
arrow-up143arrow-down1external-linkUsing alias for a more Trek-like sudo experience :Dlemmy.worldMousePotatoDoesStuff@lemmy.world to Linux@lemmy.worldEnglish · 16 days agomessage-square7fedilinkfile-text
gotta post this before I break anything with the upgrade :P (it probably won’t, but better safe than sorry)
minus-squarevarnia@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up12·edit-216 days agoWhat about aliasing sudo to engage or write a whole function for it: function engage() { echo -e "\033[1;36m[LCARS AUTHORIZATION: ACTIVATED]\033[0m" sudo "$@" }
minus-squareMousePotatoDoesStuff@lemmy.worldOPlinkfedilinkEnglisharrow-up5·16 days agoI’d put the sudo on echo too so it asks for password before echoing authorization(?)
What about aliasing sudo to engage or write a whole function for it:
function engage() { echo -e "\033[1;36m[LCARS AUTHORIZATION: ACTIVATED]\033[0m" sudo "$@" }I’d put the sudo on echo too so it asks for password before echoing authorization(?)