projects
/
grml-etc-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9cb24cf
)
zshrc: Ctrl/Alt-Cursor moves between words
author
Bernhard Tittelbach
<bernhard@tittelbach.org>
Wed, 20 Jul 2011 17:12:27 +0000
(19:12 +0200)
committer
Michael Prokop
<mika@grml.org>
Thu, 21 Jul 2011 10:37:46 +0000
(12:37 +0200)
etc/zsh/zshrc
patch
|
blob
|
history
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
602fbd2
..
d8f71d0
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-608,6
+608,15
@@
bindkey '\e[B' down-line-or-search # <ESC>-
#k# Delete current word
bindkey "3~" delete-word
#k# Delete current word
bindkey "3~" delete-word
+## use Ctrl-left-arrow and Ctrl-right-arrow for jumping to word-beginnings on the CL
+bindkey "\e[5C" forward-word
+bindkey "\e[5D" backward-word
+bindkey "\e[1;5C" forward-word
+bindkey "\e[1;5D" backward-word
+## the same for alt-left-arrow and alt-right-arrow
+bindkey '^[[1;3C' forward-word
+bindkey '^[[1;3D' backward-word
+
bindkey '^xp' history-beginning-search-backward
bindkey '^xP' history-beginning-search-forward
bindkey "\e[5~" history-beginning-search-backward #PageUp
bindkey '^xp' history-beginning-search-backward
bindkey '^xP' history-beginning-search-forward
bindkey "\e[5~" history-beginning-search-backward #PageUp