From 6158b4238f117fc2cac78e2a37b79a0f45dd7ce9 Mon Sep 17 00:00:00 2001 From: pztrn Date: Sat, 18 Jul 2015 17:33:39 +0500 Subject: [PATCH] XTERM keys update, now it should work flawlessly with PuTTY. Added fabfile to gitignore. --- .gitignore | 1 + zsh/30-keys.zsh | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7a4d086..39191ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *kdev4 *kate-swp +fabfile* diff --git a/zsh/30-keys.zsh b/zsh/30-keys.zsh index 015b24b..e3f8ff1 100644 --- a/zsh/30-keys.zsh +++ b/zsh/30-keys.zsh @@ -85,8 +85,12 @@ case "${TERM}" in bindkey '\e[H' beginning-of-line # home bindkey '\e[F' end-of-line # end bindkey '\e[3~' delete-char # delete - bindkey '\e[1;5C' forward-word # ctrl right - bindkey '\e[1;5D' backward-word # ctrl left + #bindkey '\e[1;5C' forward-word # ctrl right + #bindkey '\e[1;5D' backward-word # ctrl left + bindkey '^[[C' forward-word # ctrl right + bindkey '^[[D' backward-word # ctrl left + bindkey 'OC' forward-word # ctrl right + bindkey 'OD' backward-word # ctrl left # workaround for screen + xterm bindkey '\e[1~' beginning-of-line # home bindkey '\e[4~' end-of-line # end