increase sudo timeout
You want to increase the sudo password remember timeout.
sudo visudo“, then add this line to the end:
60 means 60 minutes. If you specify
-1, then the password is never forgotten (which is not a good idea IMO).
Tip from here.