Skip to content

Instantly share code, notes, and snippets.

@kalpesh-fulpagare
Last active December 17, 2015 19:48
Show Gist options
  • Save kalpesh-fulpagare/5662583 to your computer and use it in GitHub Desktop.
Save kalpesh-fulpagare/5662583 to your computer and use it in GitHub Desktop.
Running clear in IRB/Rails console for clearing screen content
# Create .irbrc file using touch
# $ touch ~/.irbrc
# Add following function to .irbrc file
def clear
system ‘clear’
end
# Open IRB with
# $ irb
# type something
inspect
# Now type clear
clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment