diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-02 23:43:42 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-02 23:43:43 +0200 |
commit | 9b25dffcc59cbd65a90fa84acccb01b8ff5c704b (patch) | |
tree | 0cccd01f16cd7f7e0a5c1a420029b68bb27741b1 /.zsh | |
parent | 5d282115108023eabe3e4c3a3fd0694267a0c13c (diff) | |
download | dotfiles-9b25dffcc59cbd65a90fa84acccb01b8ff5c704b.tar.gz dotfiles-9b25dffcc59cbd65a90fa84acccb01b8ff5c704b.tar.bz2 dotfiles-9b25dffcc59cbd65a90fa84acccb01b8ff5c704b.zip |
Fix screen bindings ... change zsh instead of screen
Diffstat (limited to '')
-rw-r--r-- | .zsh/zshrc | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -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 # }}} |