Skip to content

Instantly share code, notes, and snippets.

@patorash
Created December 19, 2015 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patorash/bf40fb70c0649f0b8a85 to your computer and use it in GitHub Desktop.
Save patorash/bf40fb70c0649f0b8a85 to your computer and use it in GitHub Desktop.
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