How to automate starting a multiuser screen session with adding acl to another user?

I often start a screen session, issue a ":multiuser on" command and then ":acladd someuser".

Is there some way to get with a single shell command a screen session to start with these two commands automatically?

Thanks!


Solution 1:

Use a custom screen config file with screen -c file. For example:

echo "multiuser on" >> multiscreen.conf
echo "acladd someuser" >> multiscreen.conf
alias multiscreen='screen -c multiscreen.conf' # bash syntax for alias
multiscreen