I have a bash script that sets up my tmux session how I like it the first time I log in somewhere. Some of those commends require to be run as root, so I use sudo to do that. But sudo has a per-tty cache of when you last typed the password, so every single tmux window that does a root-thing would require me to switch to it and type my password in.
Can you think of a way around this, so I just type password once?
NOTE: I can't configure sudo to not use per-tty cache

️