Skip to content
John Hawthorn edited this page May 6, 2016 · 13 revisions

fzy

Examples

Here are some scripts people have built using fzy. Please feel free to add your own.

Search for a file and open it in vim

FILE=$(ag -l -g '' | fzy) && vim "$FILE"

Search for a gem and open a new tmux window in its directory

#!/bin/sh
GEM=$(bundle list | cut -f 4 -d' ' | fzy)
DESTINATION=$(bundle show $GEM)
tmux new-window -c "$DESTINATION" -n "$GEM"
Clone this wiki locally