Small way to share it here.
[[email protected] dist-packages]# python
Python 2.7.5 (default, June 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "Help", "copyright", "credits" or "license" for more information.
>>> Import Tab
>>> exit ()
[[email protected] dist-packages]# tail-n 1/etc/profile//file path, source under
Export pythonstartup=/usr/lib/python2.7/dist-packages/tab.py
[email protected] dist-packages]# cat tab.py
#!/usr/bin/python # python startup File import sys import readline import rlcompleter import atexit import os # tab Completion readline.parse_and_bind (' Tab: complete ') # history file 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
[Email protected] dist-packages]#
Python tab implementation