I would like to add a python function in my interpreter that exists by default whenever I run python in my shell. The scenario I want is:
write a function like this once:
def clear():
import os
os.system('clear')
And run python in shell
Then I type clear()
and the screen gets cleared without having to define clear each time I invoke python interpreter.
I am interested in a solution that fits Ubuntu or any Linux distribution. however, any solution for any platform is welcome.