Skip to content

Instantly share code, notes, and snippets.

@geoffeg
Created July 10, 2019 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffeg/cdcfd5a28a0cd539db12ae8b8550665b to your computer and use it in GitHub Desktop.
Save geoffeg/cdcfd5a28a0cd539db12ae8b8550665b to your computer and use it in GitHub Desktop.
#!/bin/bash
osascript <<'END' 2>&1 >/dev/null
tell application "iTerm2"
set windowId to (unique id of current session of current window)
create window with profile "opterm" command "bash -l /Users/geoff/bin/opterm " & windowId
end tell
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment