From d3a6327d88463fd677a5d2339a03ec5bff0f49a8 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 14 Jun 2012 10:44:54 +0200 Subject: [Keys] __up_up for rehash, reset, exec. --- 12_Prompts.zsh | 1 + user:hugues/KeyBindings.zsh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 41b6b4f..84092dc 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -362,6 +362,7 @@ then HBAR=$(for i in {1..13} ; echo -n - "$_tq_") VBAR=$T_$_tx_$_T + echo echo -n " " echo -n $T_$_tl_ echo -n $HBAR diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh index af31b88..eb8bf71 100644 --- a/user:hugues/KeyBindings.zsh +++ b/user:hugues/KeyBindings.zsh @@ -198,8 +198,8 @@ bindkey '\M-^@'-'\M-' self-insert # for keymap in viins vicmd emacs do - bindkey -M $keymap -s 'r' 'Q rehash\n' - bindkey -M $keymap -s 'R' 'Q reset\n' + bindkey -M $keymap -s 'r' 'Q __up_up ; rehash\n' + bindkey -M $keymap -s 'R' 'Q __up_up ; reset\n' if ( __cmd_exists when ) then @@ -227,7 +227,7 @@ do bindkey -M $keymap -s 'S' 'Q sudo !!' - bindkey -M $keymap -s 'X' 'Q 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' -- cgit v1.2.3