Tip : "Clear" in Rails Console


I don’t know about you, It doesnt feel nice when i am working at the bottom of my terminal window, or there’s a huge unnecessary output above where I’m working.

Unfortunately, the typical terminal clear command doesn’t work in the console:

>> clear
NameError: undefined local variable or method 'clear' for # from (irb):1
So here is the trick use ctrl + l (with a lowercase L) and for Mac users, Command + k

Comments

  1. Thank you! I was feeling uncomfortable at the bottom of the terminal window.

    ReplyDelete

Post a Comment

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Remove duplicates from a JavaScript Array

Sending Binary Data over the Network with Json