I recently got a new computer at work and have been transferring over my existing iTerm set up from my old machine. This includes several scripts, including some that require a separate Python environment with additional dependencies. I use Chezmoi to manage my dot files, so I thought it would be handy to have it just put those scripts in ~/Library/Application Support/iTerm2/Scripts as appropriate. However, is there a way, with a shell script or AppleScript to tell iTerm to set up the runtime environment given the appropriate setup.cfg? I would like like not to have to manually have to go to the Scripts menu to initialize something.
Thanks!