Skip to content

Instantly share code, notes, and snippets.

@mikemurray
mikemurray / gist:20ea196aa6a108a999f03f19b13e88f1
Created May 5, 2020 22:36
iTerm 2 open all my tabs and panes
#!/usr/bin/env python3
import iterm2
# To install, update, or remove packages from PyPI, use Scripts > Manage > Manage Dependencies...
async def main(connection):
# Your code goes here. Here's a bit of example code that adds a tab to the current window:
app = await iterm2.async_get_app(connection)
window = app.current_terminal_window
window = await window.async_create(connection)