[[email protected] ~]# cat /usr/lib64/python2.6/tab.py #!/usr/bin/env python import os import sys import atexit import readline import rlcompleter readline.parse_and_bind(‘tab: complete‘) histfile = os.path.join(os.environ[‘HOME‘], ‘.pythonhistory‘) try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.write_history_file, histfile) del os, histfile, readline, rlcompleter