Run command per tab on startup (use case: activate same conda environments per tab on restart)
Feature Request
Summary
I'd like to be able to define a set of commands that would be automatically run on every startup of iTerm2.
Window arrangements is a useful feature because you can save a set of e.g. git repositories that you're frequently working on. However after restarting iTerm2, conda resets the environment of all tabs back to base tab, meaning it's frequently a problem that you have to use conda activate [ENVIRONMENT]
for all tabs since they all go back to base environment on restart. So if you could define conda activate env1
to run for Tab 1, conda activate env2
to run for Tab 2 etc., this would be incredibly useful.
Alternatives
I don't know of any way to do this on a per-tab basis in a saved Window Arrangement, but I'd be happy for any workaround!