What is peco
peco
is a simple tool that allows you to interactively filter your data. I know, you're going "WTF does that mean?" It's hard to explain, so proceed to the demo section if you're impatient.
Get peco
You can get the source code from github.
If you want to get the binary using go get
, install go1.x (at the time of this writing, go1.3 is recommended), and run:
$ go get github.com/peco/peco/cmd/peco
(Yes, that's a lot of "peco"s :)
If you are on OS X and are using homebrew, use brew tap
to get the repository
$ brew tap peco/peco
$ brew install peco
If you have already tapped the repository and want to upgrade, use brew update
.
Note: If you have previously tapped my personal repolestrrat/peco
, you will have to untap and tap thepeco/peco
repository
Demo
Demos speak more than a thousand words! Here's me looking for a process on my mac. As you can see, you can page through your results, and you can keep changing the query:
Here's me trying to figure out which file to open:
When you combine tools like zsh, peco, and ghq, you can make managing/moving around your huge dev area a piece of cake! (this example doesn't use zsh functions so you can see what I'm doing)
If you would like to share you cool use of peco
, pleae share it on the wiki