Skip to content

Commit

Permalink
fix keybinding issues on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrekle committed Feb 26, 2013
1 parent 1d62258 commit 47a3615
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

8 changes: 0 additions & 8 deletions options.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 47a3615

Please sign in to comment.