Skip to content

Instantly share code, notes, and snippets.

@brock
Last active February 10, 2016 06:16
Show Gist options
  • Save brock/b25954695f0979079dca to your computer and use it in GitHub Desktop.
Save brock/b25954695f0979079dca to your computer and use it in GitHub Desktop.
4 x 4 iTerm Grid
#!/bin/bash
# panes
# make a 4x4 grid of iTerm panes
/usr/bin/env osascript <<-EOF
tell application "iTerm"
activate
set myterm to (make new terminal)
tell myterm
launch session "Panes"
tell i term application "System Events" to keystroke "d" using command down
tell i term application "System Events" to keystroke "D" using command down
tell i term application "System Events" to keystroke "[" using command down
tell i term application "System Events" to keystroke "[" using command down
tell i term application "System Events" to keystroke "D" using command down
end tell
end tell
EOF
@deeTEEcee
Copy link

i think you mean 2x2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment