配置python命令tab键自动补全
2014-08-26 11:41
489 查看
1.edit
and configure pythonstartup file
# 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
2. add the enviroment varable to system with administrator role
For windowns
pythonstartupf=path/pythonstartup.py
For Linux
add the following to you
and configure pythonstartup file
# 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
2. add the enviroment varable to system with administrator role
For windowns
pythonstartupf=path/pythonstartup.py
For Linux
add the following to you
~/.bash_profile或bashrc
export PYTHONSTARTUP=~/.pythonstartup
相关文章推荐
- 配置python命令tab键自动补全
- 配置python命令tab键自动补全
- 配置python命令tab键自动补全
- 配置python命令tab键自动补全
- linux下配置python命令tab键自动补全
- 配置python命令tab键自动补全
- 配置python命令tab键自动补全
- python环境tab命令自动补全
- Python命令添加Tab键自动补全
- Python中tab键自动补全功能的配置
- Python命令tab键自动补全
- Linux vim编辑器中tab自动补全python命令脚本
- python环境下使用tab自动补全命令
- Python添加tab自动补全及命令历史功能。
- 配置systemctl命令tab自动补全
- Python命令还使用tab键自动补全和xshell不能使用删除键
- Python命令Tab自动补全脚本
- Python中tab键自动补全功能的配置
- python环境下使用tab自动补全命令
- centos中配置python的tab键自动补全功能