gnome-terminal的键绑定设置

Linux | 2012-12-22 22:55:35 | 阅读 1533 次 | 评论(0)

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']

文章评论,共0条
游客请输入验证码
浏览1907695次
文章归档
最新评论
  • Miss_Zou:目测是大佬
  • 神犇dengyuhy:语文很好
  • 猫云:学习 学习