I have an alias that I would like to use both as a regular user and as root, via sudo. Specifically, it is this:
This works fine as a normal user, and it works fine when I use
sudo -i to get a root shell prompt, but if I use
sudo rm, the alias does not apply. So where do I need to put my alias so that it works in one-off sudo commands?