19.08.13

Installing pythonstartup file


in your ~/.bashrc:
export PYTHONSTARTUP=$HOME/.pythonstartup
and put your python code in $HOME/.pythonstartup, like:
import rlcompleter
import readline

readline.parse_and_bind("tab: complete")
For more information about PYTHONSTARTUP variable, read the python man page:
$ man python