Jif is a tool that allows you to search for animated gifs right from your terminal window. I created this because I was tired of leaving my terminal window in order to find gifs. Instead of opening a browser (or some other app) to search for gifs, I can just type in a quick command to Jif to get the gif I'm looking for. Since creating this tool, I've seen a 1000% increase in my productivity!
Jif has two major dependencies (outside of ruby and ruby-gems).
- You'll need to install imgcat...
brew tap eddieantonio/eddieantonio
brew install imgcat
- you will need a version of iTerm2 with animated gif support. That means a version >= 2.9.20150512, but I would recommend that you just go ahead and install the current beta release of iTerm2 3.0.
After you're sure you have both of those things... just clone, build, and install Jif!
git clone https://github.com/lonnieking/jif.git
cd jif
rake build jif
rake install jif
To use jif, just open up iTerm2 and issue one of the following commands...
Retrieves a gif at random from giphy.
Warning! There is no guarantee that the result will be SFW!
jif random
Retrieves the first gif in giphy search results for a given query.
jif search QUERY TERMS
You can also use multiple search terms to get something more specific.