Skip to main content

Playing with inputrc

I've recently discovered the powerful features of editing ~/.inputrc, it's one of those little things that will surely make you smile.

After making the desired changes you have to load them, my suggestion is to add this line to your .bashrc:

bind -f ~/.inputrc

Change the bindings of the terminal

The awesome feature of bash set -o vi can be tweaked to match your custom key-bindings ^^

set editing-mode vi
$if mode=vi
    #set keymap vi-insert

In this case we mapped jk as the escape key, to enter the command mode.

Ignore case on completion

If we add the next line:

set completion-ignore-case On

You can match both Downloads and documents when pressing twice tab cd do
Documents/ downloads/