]> arthur.barton.de Git - ConfigScripts.git/commitdiff
bashrc: Map up & down to history
authorAlexander Barton <alex@barton.de>
Thu, 27 Nov 2014 16:30:28 +0000 (17:30 +0100)
committerAlexander Barton <alex@barton.de>
Thu, 27 Nov 2014 16:30:28 +0000 (17:30 +0100)
sys/bashrc

index baf3c17b9879493d419f88227c94112864c2fd73..559cc8c54b85f96ce1d3ad8f18cd012de2c85dc0 100644 (file)
@@ -56,6 +56,10 @@ sshtmp() {
        ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile /dev/null" "$@"
 }
 
+# Map up & down to history search once a command has been started
+bind '"\e[A":history-search-backward'
+bind '"\e[B":history-search-forward'
+
 # Colors
 case "$TERM" in
        ansi|cons25|cygwin|dtterm|linux|rxvt|screen*|vt100|vt200|vt220|vt320| \