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 "$@"
}
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 "$@"
}
Now how to change the authentication failure message to read, "That procedure is not recommended"?
I found this: https://stackoverflow.com/questions/74334064/how-to-check-from-commandline-if-sudo-authentication-failed but someone probably has a better solution
top 4 comments