Add mapkey for ctrl+← and ctrl+→

This commit is contained in:
gardouille 2015-02-26 14:20:54 +01:00
parent e64315f57c
commit 159eaade4b

8
zshrc
View File

@ -13,7 +13,7 @@ alias ls='ls --classify --tabsize=0 --literal --color=auto --show-control-chars
# Copie en récursif et qui garde la date des fichiers copiés
#alias cp='cp -Rp'
alias cp='cp -R'
alias cp='cp -R' # **cp** copy files and directories recursively # TEST
# Copie distante, ajout de la récursivité tout le temps:
alias scp='scp -r'
@ -43,7 +43,7 @@ if [ ${USER} != "root" ]; then
alias si='sudo iptables -L -vn '
alias sp='sudo puppet agent -t '
alias sv='sudo vi '
alias sz='sudo zsh '
alias sz='sudo -i '
else
alias si='iptables -L -vn '
alias sp='puppet agent -t '
@ -677,6 +677,10 @@ key[PageDown]=${terminfo[knp]}
[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward
[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward
# ctrl+← and ctrl+→ issue
bindkey "^[[1;5C" vi-forward-word-end
bindkey "^[[1;5D" backward-word