Set up environment for Scripts without using the menus

60 views
Skip to first unread message

Travis B. Hartwell

unread,
Sep 16, 2022, 9:52:54 AM9/16/22
to iterm2-discuss
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!

George Nachman

unread,
Sep 20, 2022, 4:55:38 PM9/20/22
to iterm2-...@googlegroups.com
Commit 3f5b5fb8c500c20d5530def175063296f8c34482 adds support for multiple selection in the script import and export file pickers. This is definitely the simplest way to accomplish what you want.

On Sep 16, 2022 at 6:52:53 AM, Travis B. Hartwell <na...@travishartwell.net> wrote:
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!

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/d08e23f5-5e15-433c-bc3d-2d81ccfc55c6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages