From 47a36150fa9ebe553a45666346c2be3483b07c8f Mon Sep 17 00:00:00 2001 From: Jonas Brekle Date: Tue, 26 Feb 2013 17:23:38 +0100 Subject: [PATCH] fix keybinding issues on cygwin --- completion.zsh | 2 +- options.zsh | 8 -------- zshrc | 8 ++++++++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/completion.zsh b/completion.zsh index baa0681..400e0bc 100644 --- a/completion.zsh +++ b/completion.zsh @@ -84,5 +84,5 @@ zstyle ':completion::*:vi:*:*' file-patterns 'Makefile|*(rc|log)|*.(php|tex|bib| zstyle :compinstall filename '~/.zshrc' -autoload -Uz compinit && compinit +autoload -Uz compinit && compinit -u diff --git a/options.zsh b/options.zsh index b7efa5e..17172a0 100644 --- a/options.zsh +++ b/options.zsh @@ -7,16 +7,8 @@ export GREP_OPTIONS='--binary-files=without-match --ignore-case' # keybindings Strg+v is your friend :-) -bindkey "^[[1;5D" .backward-word -bindkey "^[[1;5C" .forward-word bindkey "^[[1;6D" backward-delete-word bindkey "^[[1;6C" delete-word -# alt+left (on mac) deletes word -bindkey "^[" backward-kill-word -# fn-left -bindkey "^[[H" .backward-word -# fn-right -bindkey "^[[F" .forward-word # arrow up/down searches in history if line is already started bindkey '^[[A' up-line-or-search diff --git a/zshrc b/zshrc index 16b42fa..2601e30 100644 --- a/zshrc +++ b/zshrc @@ -4,6 +4,14 @@ # the main RC file (should be linked to ~/.zshrc) # +export TERM="xterm-256color" +if [[ `uname -s` == *CYGWIN* ]]; then + export TERM="cygwin" +fi + +set -o emacs +bindkey "^[[3~" delete-char + # first include of the environment source $HOME/.config/zsh/environment.zsh