Created
December 30, 2020 02:58
-
-
Save kirkegaard/0715a7785e9476cb00511b8a1cd78fb2 to your computer and use it in GitHub Desktop.
Upload images to imgur from cli and save it in paste buffer
This file contains 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
imgur() { | |
res=$(curl -sSF image=@$1 https://api.imgur.com/3/upload |jq -r '.data.link') | |
echo $res |pbcopy | |
echo $res | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment