X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=inputrc;h=0e702f12a0b177e2e54ad8e2e0bb6cbc19fb342a;hb=5b041628369b1f54ab4460c6f05ec203b20d28fd;hp=20832dad169fe24f28b4640b3fe3775d987b1069;hpb=8d5c5f1ba0966a3234dc6b1e3cb38c853d9bdf26;p=config%2Fdotfiles.git diff --git a/inputrc b/inputrc index 20832da..0e702f1 100644 --- a/inputrc +++ b/inputrc @@ -1,5 +1,20 @@ # Configuration file for readline. +# Copyright (C) 2011-2012 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + # Only one is necessary to get a list of all possible options. set show-all-if-ambiguous on @@ -23,5 +38,8 @@ set editing-mode vi "jj": vi-movement-mode "jk": vi-movement-mode -"\C-p": previous-history -"\C-n": next-history +# / with the additional effect that only lines starting with the +# current input are matched. Very useful to recall old commands quickly - just +# type the first few characters. +"\C-p": history-search-backward +"\C-n": history-search-forward