Skip to content

Instantly share code, notes, and snippets.

@rking

rking/.guardrc Secret

Created September 17, 2012 23:41
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 rking/da7f4b2f8465a3d75cd4 to your computer and use it in GitHub Desktop.
Save rking/da7f4b2f8465a3d75cd4 to your computer and use it in GitHub Desktop.
# ~/.guardrc to mimic the abbreviated commands of guard ≤ 1.3.2
%w(help reload change show notification pause exit).each do |full_cmd|
Pry.commands.alias_command full_cmd[0].chr, full_cmd
end
Pry.commands.block_command /^$/, 'Hit Enter to run all tests' do
Pry.run_command 'all'
end
# vim:ft=ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment