Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pecoでRspecのファイルを探し出して実行する。
function peco_rspec
find . -follow -name "*_spec.rb" | peco | read -l file_name
echo "bin/rspec $file_name"
bin/rspec $file_name
commandline "bin/rspec $file_name"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment