From 0d2975dfa408a744151bde6ffa1778b4c37e472b Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Wed, 10 Aug 2011 11:39:50 +0200 Subject: [PATCH] fix zsh inputrc management --- inputrc | 4 ++-- zshrc | 18 +++--------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/inputrc b/inputrc index f21c1e3..480bcd3 100644 --- a/inputrc +++ b/inputrc @@ -47,5 +47,5 @@ set completion-ignore-case on "\e[5C": end-of-line # Option+left/right on Terminal.app -"\ef":forward-word -"\eb":backward-word +"\ef": forward-word +"\eb": backward-word diff --git a/zshrc b/zshrc index 15d4da5..988bad0 100644 --- a/zshrc +++ b/zshrc @@ -26,22 +26,10 @@ chpwd # call in right now bindkey -e # bind special keys according to readline configuration -eval "$(sed -n 's/^/bindkey /; s/: / /p' ~/.inputrc)" +eval "$(sed -n 's/#.*//; s/^/bindkey /; s/: / /p' ~/.inputrc)" -# fix some keys -#bindkey "\e[1~" beginning-of-line # Home -#bindkey "\e[4~" end-of-line # End -#bindkey "\e[5~" beginning-of-history # PageUp -#bindkey "\e[6~" end-of-history # PageDown -#bindkey "\e[2~" quoted-insert # Ins -#bindkey "\e[3~" delete-char # Del -#bindkey "\e[5C" forward-word # -#bindkey "\eOc" emacs-forward-word # ^Right -#bindkey "\e[5D" backward-word # -#bindkey "\eOd" emacs-backward-word # ^Left -#bindkey "\e\e[C" forward-word # -#bindkey "\e\e[D" backward-word # -#bindkey "\e[Z" reverse-menu-complete # Shift+Tab +# bind some more keys, zsh only +bindkey "\e[Z" reverse-menu-complete # Shift+Tab # Keep 1000 lines of history within the shell and save it to ~/.zsh_history: HISTSIZE=1000