Browse Source

Add key bindings for gnome-terminal on Fedora

Loïc Yhuel 12 years ago
parent
commit
428f18cf42
1 changed files with 5 additions and 0 deletions
  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 "^[[1~" beginning-of-line
+bindkey "^[OH" beginning-of-line
 bindkey "^[[F"  end-of-line
 bindkey "^[[4~" end-of-line
+bindkey "^[OF" end-of-line
 bindkey ' ' magic-space    # also do history expansion on space
 
+bindkey "^[[1;5C" forward-word
+bindkey "^[[1;5D" backward-word
+
 bindkey '^[[Z' reverse-menu-complete
 
 # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~