gnome-terminal的键绑定设置

作者在 2012-12-22 22:55:35 发布以下内容

vi .inputrc

set convert-meta on
'\M-h': backward-char
'\M-l': forward-char
'\M-j': next-history
'\M-k': previous-history
'\M-l': forward-char
'\C-h': beginning-of-line
'\C-l': end-of-line


ipython中ctrl+L默认是clear-screen,需要专门绑定为end-of-line:
ipython profile create
vi .config/ipython/profile_default/ipython_config.py
搜readline_parse_and_bind,在下面添加一行:
c.TerminalInteractiveShell.readline_parse_and_bind = ['tab: complete', '"\\C-l": end-of-line']

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