Created
December 19, 2015 03:21
-
-
Save patorash/bf40fb70c0649f0b8a85 to your computer and use it in GitHub Desktop.
pecoでRspecのファイルを探し出して実行する。
This file contains hidden or 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 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