Created
August 17, 2015 19:40
-
-
Save gizmomogwai/e3cde85564c0eb5aabd4 to your computer and use it in GitHub Desktop.
select one raketask with fzf in the fish shell
This file contains 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 rt -d "select one rake task" | |
if rake -T | fzf > $TMPDIR/fzf.result | |
set fzf_result (cat $TMPDIR/fzf.result | cut -d ' ' -f 2) | |
set h "rake $fzf_result" | |
commandline $h | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sans temp file & supports multiple tasks: