summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-14 12:15:10 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-14 14:16:09 +0200
commitf65a7cc38905ad74c0d398cd165b7454f00d4b2d (patch)
tree9cf1f4099940f449e9722ec777768ddffd8b66cc /user:hugues
parentd3a6327d88463fd677a5d2339a03ec5bff0f49a8 (diff)
[Funcs] Internals / ZLE Widgets cleanup
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/KeyBindings.zsh14
1 files changed, 7 insertions, 7 deletions
diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh
index eb8bf71..6d8a5f4 100644
--- a/user:hugues/KeyBindings.zsh
+++ b/user:hugues/KeyBindings.zsh
@@ -196,10 +196,10 @@ bindkey '\M-^@'-'\M-' self-insert
#
#
+
for keymap in viins vicmd emacs
do
- bindkey -M $keymap -s 'r' 'Q __up_up ; rehash\n'
- bindkey -M $keymap -s 'R' 'Q __up_up ; reset\n'
+ bindkey -M $keymap 'r' _rehash
if ( __cmd_exists when )
then
@@ -227,18 +227,18 @@ do
bindkey -M $keymap -s 'S' 'Q sudo !!'
- bindkey -M $keymap -s 'X' 'Q __up_up ; exec zsh -l\n'
+ bindkey -M $keymap -s 'X' 'Q up_up ; exec zsh -l\n'
bindkey -M $keymap -s 'OA' 'up-line-or-history'
bindkey -M $keymap -s 'OB' 'down-line-or-history'
bindkey -M $keymap -s 'OC' 'forward-word'
bindkey -M $keymap -s 'OD' 'backward-word'
- bindkey -M $keymap 'q' push-line
- bindkey -M $keymap 'Q' push-line
+ bindkey -M $keymap 'q' push-input
+ bindkey -M $keymap 'Q' push-input
- bindkey -M $keymap -s 'K' 'Q __up_up\n'
- bindkey -M $keymap -s 'B' 'Q tput clear ; tput cup $(tput lines) 0\n'
+ bindkey -M $keymap -s 'R' 'Q __clear\n'
+ bindkey -M $keymap -s 'B' 'Q __clear $(tput lines)\n'
done
# redefines push-line for vicmd