Skip to content

Instantly share code, notes, and snippets.

@doctaphred
Last active April 23, 2018 20:19
Show Gist options
  • Save doctaphred/026a353517e5dfdb0107b87c3c78930c to your computer and use it in GitHub Desktop.
Save doctaphred/026a353517e5dfdb0107b87c3c78930c to your computer and use it in GitHub Desktop.
#!/bin/sh
# Pretty-print the JSON on the (macOS) clipboard.
# Works with Python 2 or 3.
pbpaste | python -m json.tool | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment