From 9937fb7be886f51e3c60385f98add0c2a57f23e6 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 11 Jun 2015 12:55:19 +0300 Subject: [PATCH] some key bindings for bash --- shellrc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/shellrc b/shellrc index 5d0ad3d..0bb314a 100644 --- a/shellrc +++ b/shellrc @@ -319,9 +319,18 @@ else # {{{ key bindings # time $command bind bind '"\C-j":"\C-atime \C-m"' - # PgUp/PgDown and ctrl-arrows for skip word - bind '"\e[5~"':backward-word - bind '"\e[6~"':forward-word + # urxvt + bind '"\e[7~"':beginning-of-line # home + bind '"\e[8~"':end-of-line # end + # screen + bind '"\e[1~"':beginning-of-line # home + bind '"\e[4~"':end-of-line # end + # xterm + bind '"\e[H~"':beginning-of-line # home + bind '"\e[F~"':end-of-line # end + # all of them + bind '"\e[5~"':backward-word # page up + bind '"\e[6~"':forward-word # page down # }}} # {{{ plugins completion_path='/usr/share/bash-completion/bash_completion'