[ Prev ] [ Index ] [ Next ]

readline

The readline program is used by bash for user input and is configured by the global settings in /etc/inputrc and by the user level settings in ~/.inputrc

1. Configure single-tab expand

The option in .inputrc enables command expansion on a single tab

Default readline(rpm) configuration requires 2 tabs to expand the matching command completions set. To change this so that a single tab character initates command exapansion, ensure that show-all-if-ambiguous is configured in the user's .inputrc. E.g.,

set show-all-if-ambiguous on

2. csh-style history

Add the following to ~/.inputrc to force the bash history recall to work like csh's non-incremental history:

"\ep": history-search-backward
"\en": history-search-forward 

Stuart Moorfoot © 6 Feb 1999 foo@bund.com.au


Backlinks: