I have created an alias for myuser that is
alias up='sudo apt update && sudo apt -y upgrade && sudo apt -y autoremove'
It is stored in the user's .bashrc file. I have tried to modify sudoers file inserting the following line at the end of it:
myuser ALL=(ALL) NOPASSWD: up
visudo gives a syntax error however. How can I make my alias run without the password for root?