You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
# Simple JSON pretty print for contents on your cliboard
pbpaste | json_pp | pbcopy
# https://stackoverflow.com/questions/20265439/how-can-i-pretty-print-a-json-file-from-the-command-line/24951417
# TODO:
# if Json_pp, then use that
# if python json.tool, then use that
# if jq, then use that
# etc
# TODO:
# if data being piped in, use that
# else pbpaste
#
# if data being piped out, allow it
# else pbcopy
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: