From 9b25dffcc59cbd65a90fa84acccb01b8ff5c704b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 2 Apr 2010 23:43:42 +0200 Subject: Fix screen bindings ... change zsh instead of screen --- .screenrc | 4 ---- .zsh/zshrc | 31 +++++++++++++++++++------------ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.screenrc b/.screenrc index 68c4622..aa119ab 100644 --- a/.screenrc +++ b/.screenrc @@ -1,5 +1 @@ defflow off - -# bindkeys -bindkey -k kh stuff \033OH -bindkey -k kH stuff \033OF diff --git a/.zsh/zshrc b/.zsh/zshrc index a344e67..a2a8956 100644 --- a/.zsh/zshrc +++ b/.zsh/zshrc @@ -173,18 +173,25 @@ esac # Key bindings {{{ ################################################# bindkey -e # use emacs style :) -case $TERM in (xterm*|aterm|rxvt|screen) - bindkey "^[OH" beginning-of-line - bindkey "^[OF" end-of-line - bindkey "^[[3~" delete-char - if [[ $ZSH_VERSION == 4.3.10 ]]; then - bindkey "^R" history-incremental-pattern-search-backward - bindkey "^S" history-incremental-pattern-search-forward - else - bindkey "^R" history-incremental-search-backward - bindkey "^S" history-incremental-search-forward - fi - ;; +if [[ $ZSH_VERSION == 4.3.10 ]]; then + bindkey "^R" history-incremental-pattern-search-backward + bindkey "^S" history-incremental-pattern-search-forward +else + bindkey "^R" history-incremental-search-backward + bindkey "^S" history-incremental-search-forward +fi + +case $TERM in + xterm*|aterm|rxvt) + bindkey "^[OH" beginning-of-line + bindkey "^[OF" end-of-line + bindkey "^[[3~" delete-char + ;; + screen) + bindkey "^[[1~" beginning-of-line + bindkey "^[[4~" end-of-line + bindkey "^[[3~" delete-char + ;; esac # }}} -- cgit v1.2.3