Created
March 22, 2012 05:27
-
-
Save rondale-sc/2156369 to your computer and use it in GitHub Desktop.
make-it-your-own
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
| # ~/.irbrc | |
| def clear | |
| system 'clear' | |
| end |
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
| # ~/.pryrc | |
| # Create a command_set which is the structure in which commands | |
| # are organized | |
| command_set = Pry::CommandSet.new do | |
| command "clear", "Clear the screen." do | |
| system 'clear' | |
| end | |
| end | |
| # Import your command_set to the Pry session. | |
| Pry.config.commands.import command_set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment