Skip to content

Instantly share code, notes, and snippets.

@rondale-sc
Created March 22, 2012 05:27
Show Gist options
  • Select an option

  • Save rondale-sc/2156369 to your computer and use it in GitHub Desktop.

Select an option

Save rondale-sc/2156369 to your computer and use it in GitHub Desktop.
make-it-your-own
# ~/.irbrc
def clear
system 'clear'
end
# ~/.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