浏览代码

Add key bindings for gnome-terminal on Fedora

Loïc Yhuel 13 年之前
父节点
当前提交
428f18cf42
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      lib/key-bindings.zsh

+ 5 - 0
lib/key-bindings.zsh

@@ -14,10 +14,15 @@ bindkey '^[[B' down-line-or-search
 
 
 bindkey "^[[H" beginning-of-line
 bindkey "^[[H" beginning-of-line
 bindkey "^[[1~" beginning-of-line
 bindkey "^[[1~" beginning-of-line
+bindkey "^[OH" beginning-of-line
 bindkey "^[[F"  end-of-line
 bindkey "^[[F"  end-of-line
 bindkey "^[[4~" end-of-line
 bindkey "^[[4~" end-of-line
+bindkey "^[OF" end-of-line
 bindkey ' ' magic-space    # also do history expansion on space
 bindkey ' ' magic-space    # also do history expansion on space
 
 
+bindkey "^[[1;5C" forward-word
+bindkey "^[[1;5D" backward-word
+
 bindkey '^[[Z' reverse-menu-complete
 bindkey '^[[Z' reverse-menu-complete
 
 
 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~