Chinaunix首页 | 论坛 | 博客
  • 博客访问: 266864
  • 博文数量: 103
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 705
  • 用 户 组: 普通用户
  • 注册时间: 2013-05-02 16:15
文章分类

全部博文(103)

文章存档

2014年(8)

2013年(95)

我的朋友
tab

分类: Python/Ruby

2014-01-13 12:38:49

#!/usr/bin/env python 
# this content comes from oldboy trainning.
# e_mail:31333741@qq.com
# qqinfo:49000448
# function: python tab config.
# version:1.1 
################################################
# oldboy trainning info.      
# QQ 1986787350 70271111
# site:
# blog:http://oldboy.blog.51cto.com
# oldboy trainning QQ group: 208160987 45039636
################################################
# 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
阅读(1619) | 评论(0) | 转发(0) |
0

上一篇:jQuery06-AJAX

下一篇:>/dev/null 2>&1

给主人留下些什么吧!~~