[wellylug] Take a hint

David Antliff dave.antliff at paradise.net.nz
Wed Sep 8 09:28:42 NZST 2004


On Wed, 8 Sep 2004, Grant McLean wrote:
>
> To map Ctrl-F to search forwards through history, create a file
> called .inputrc in your home directory and put this line in it:
>
>   "\C-F": forward-search-history
>
> You may also want to add these two lines as well:
>
>   "\e[5D": backward-word
>   "\e[5C": forward-word
>
> These allow the use of the Ctrl-Left-Arrow and Ctrl-Right-Arrow to
> move left and right a word at a time.


Unfortunately these didn't work for me - does nothing in an aterm, moves
one character in a linux console and prints ';5D;5D;5C;5C...' in an xterm.
Pity, because that would be really useful.  (No I don't have CTRL-arrow
mapped to anything with my window manager).

Here's a few more useful things to add to .inputrc:

# makes bash display all completion matches on the first
# TAB rather than the second (try it and see)
set show-all-if-ambiguous on

# turn off the annoying terminal bell (beep!)
set bell-style none


-- 
David.





More information about the wellylug mailing list