Skip to content

Instantly share code, notes, and snippets.

@kernelsmith
Created October 21, 2014 23:12
Show Gist options
  • Select an option

  • Save kernelsmith/28ce5c0229287c7cd57f to your computer and use it in GitHub Desktop.

Select an option

Save kernelsmith/28ce5c0229287c7cd57f to your computer and use it in GitHub Desktop.
screen capture current terminal window on osx, command-line
screencapture -l$(osascript -e 'tell app "iTerm" to id of window 1') sc_test.png
@kernelsmith
Copy link
Author

if using straight Terminal, then replace "iTerm" with "Terminal"

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