From 159eaade4b198898351c73fb09023193138c75d8 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 26 Feb 2015 14:20:54 +0100 Subject: [PATCH] =?UTF-8?q?Add=20mapkey=20for=20ctrl+=E2=86=90=20and=20ctr?= =?UTF-8?q?l+=E2=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zshrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 468c672..9551365 100644 --- a/zshrc +++ b/zshrc @@ -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 +