Recently I learned you can enable sudo for custom aliases as follows:alias sudo='sudo ' # note: the space is required!The reason this works is the following:If the last character of the alias value is a space or tab character, then the next command word following the alias is also checked for alias expansion.My question is: is there any way to enable sudo with custom functions too?
How to enable `sudo` with custom functions?
sudo;alias;function