summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-14 10:44:54 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-14 10:44:54 +0200
commitd3a6327d88463fd677a5d2339a03ec5bff0f49a8 (patch)
treed27fa11654cd4daa97d75f6a739e093a5010b3d1
parent02bfe1bc0d3d7387db74aca3943e19e9bc0527e5 (diff)
[Keys] __up_up for rehash, reset, exec.
-rw-r--r--12_Prompts.zsh1
-rw-r--r--user:hugues/KeyBindings.zsh6
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'