From 656af50842cf94fc5c4d36b10b3a7e1367ff68f1 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 14 Feb 2012 10:52:06 +0100 Subject: [Keys] Better bindings for clear-to-top and clear-to-bottom bindings (keeps standard clean command, which behaviour is good though..) --- user:hugues/KeyBindings.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'user:hugues') diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh index 5cb226d..2551587 100644 --- a/user:hugues/KeyBindings.zsh +++ b/user:hugues/KeyBindings.zsh @@ -237,9 +237,8 @@ do bindkey -M $keymap 'q' push-line bindkey -M $keymap 'Q' push-line - # better than clear-screen since it recalculates prompt... - bindkey -M $keymap -s ' ' 'Q tput clear\n' - bindkey -M $keymap -s 'L' 'Q tput clear ; tput cup $(tput lines) 0\n' + bindkey -M $keymap -s 'L' 'Q tput clear\n' + bindkey -M $keymap -s 'B' 'Q tput clear ; tput cup $(tput lines) 0\n' done # redefines push-line for vicmd -- cgit v1.2.3