Sudo
Sudo copied to clipboard
Allow alternate sudo session file storage
It's a bit inconvenient that the user's home directory gets littered with SudoSession directories each day. I'm not sure what the best solution is here; they're needed for restoring settings so just discovering them and deleting them isn't really an option I guess (or maybe just all but the last one?). A better alternative would be to use $env:TEMP instead of $HOME since after all the directories are temporary. Or else make the directory configurable?