Skip to content

rotblauer/gifit

Repository files navigation

$ gifit: stdout worth a thousand pictures gif

$ gifit what it is
# > ![what+it+is](http://media2.giphy.com/media/EsmlrgWNx5v0Y/giphy-tumblr.gif)

Which gets you... what+it+is

Install.

  • go get github.com/rotblauer/gifit
  • cd $GOPATH/src/github.com/rotblauer/gifit
  • go install

or ...

  • git clone <this repo>
  • cd <wherever you cloned it to> && go build
  • mv gifit $GOPATH/bin/ or wherever else you keep your bin shi

Use.

$ gifit finds a random search result from Giphy and sends it to markdown format in your stdout, from which point you can behave as irresponsibly as you wish with said markdowned(default)/embeddable gif.

Why would I ever want that?
  1. Put a gif in a commit message (you are markdowning your commit messages, right?):
$ git commit -m `gifit shipit`
  1. Illustrate your manuscripts.
$ gifit squirrels spinning >> Senior_thesis_final_draft.md
  1. Copy an embeddable/fancily/socially previewable url of a hilarious cats gif to your clipboard.
$ gifit -e cats in glue | pbcopy
  1. Get rambunctuous with your Slack CLI.
$ slackcli -g professionalcolleagues -m "`gifit -e rat race`"
  1. Just look at some beautiful stuff.
$ open -a Safari `gifit -e cat rainbow`

Options

    # -s : still image
    gifit -s awesome cats
    > ![awesome+cats](http://media1.giphy.com/media/3o6Zt6dKB6ik0llg0o/giphy_s.gif)

    # -e : embed url (display previewly/properly in social posts, etc)
    gifit -e hilarious hamsters
    > http://giphy.com/embed/4HZbQBHDiUwIo

![cuz we haz 2](./Giphy Attribution Marks/Animated Logos/Badge/Poweredby_640px_Badge.gif)