История изменений
Исправление blackst0ne, (текущая версия) :
###################################
# Correcting behaviors of the 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
bindkey "\e[5D" backward-word
bindkey "\eOd" emacs-backward-word
bindkey "\e\e[C" forward-word
bindkey "\e\e[D" backward-word
bindkey "^[[A" history-beginning-search-backward
bindkey -a "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
bindkey -a "^[[B" history-beginning-search-forward
# For rxvt:
bindkey "\e[7~" beginning-of-line # Home
bindkey "\e[8~" end-of-line # End
# For non RH/Debian xterm, can't hurt for RH/Debian xterm:
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
# For freebsd console:
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
Исходная версия blackst0ne, :
[code]###################################
# Correcting behaviors of the 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
bindkey «\e[5D» backward-word
bindkey «\eOd» emacs-backward-word
bindkey «\e\e[C» forward-word
bindkey «\e\e[D» backward-word
bindkey «^[[A» history-beginning-search-backward
bindkey -a «^[[A» history-beginning-search-backward
bindkey «^[[B» history-beginning-search-forward
bindkey -a «^[[B» history-beginning-search-forward
# For rxvt:
bindkey «\e[7~» beginning-of-line # Home
bindkey «\e[8~» end-of-line # End
# For non RH/Debian xterm, can't hurt for RH/Debian xterm:
bindkey «\eOH» beginning-of-line
bindkey «\eOF» end-of-line
# For freebsd console:
bindkey «\e[H» beginning-of-line
bindkey «\e[F» end-of-line
[/code]