This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# I sometimes get sent screenshots of text and I don't like typing it out. | |
# Here's a script that attempts to read it and put it on your clipboard. | |
# Requires `brew install tesseract` | |
set -eou pipefail | |
# Create a temporary file and delete when we are done | |
TEMP_LOCATION=$(mktemp) |