Skip to content

Instantly share code, notes, and snippets.

@weilandia
Last active March 22, 2016 05:44
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 weilandia/39b88385df2be20aca84 to your computer and use it in GitHub Desktop.
Save weilandia/39b88385df2be20aca84 to your computer and use it in GitHub Desktop.
Hey 1511,
If you are still needing to require 'pry' at the top of your specs, here's a quick fix that can save you some time:
1. Go to your atom preferences (cdm ,)
2. Click on 'Open Config Folder'
3. Navigate to your 'snippets.cson' file.
4. Paste the following code at the top of the file:
'.source.ruby':
'pry':
'prefix': 'pry'
'body': 'require "pry"; binding.pry'
5. If you want to add additional snippets, simply at them on the same indentation of the first 'pry', below the 'body' line. Happy prying!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment