Last active
November 22, 2019 03:48
-
-
Save rymawby/5072615fec1de00c2dae28ea6bb0f6bd to your computer and use it in GitHub Desktop.
Giphy bash function
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
function giphy() { curl --silent "https://api.giphy.com/v1/gifs/search?api_key={API_KEY}&limit=1&offset=0&rating=&lang=en&q=$1" | node -p "JSON.parse(require('fs').readFileSync('/dev/stdin')).data[0].images.downsized_large.url" | pbcopy | open -a Slack} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment