Is there a way to use config files for use with sudo?
For example a .bashrc, .gitconfig, or an emacs init.el
Specifically I wanted to get LSCOLORS in sudo commands. I know that I can put these variables in the environment.
eg. in .bashrc:
export LSCOLORS = ... alias sudo='sudo -E'
then run sudo
But I am wondering if there is another way to setup defaults for sudo.