ipython的键绑定设置

作者在 2014-06-23 19:42:55 发布以下内容

ipython profile create tmp

用上面的命令创建profile_tmp文件夹(命令行会提示具体的路径),

然后把profile_tmp里面的ipython_config.py移动到profile_default里面,

删除profile_tmp,

打开ipython_config.py,设置

c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\M-h": backward-char', '"\\M-l": forward-char', '"\\M-j": next-history', '"\\M-k": previous-history', '"\\C-h": beginning-of-line', '"\\C-l": end-of-line']

Python | 阅读 2460 次
文章评论,共0条
游客请输入验证码
浏览2781311次
文章归档