M0UNTAIN 0F C0DE

.inputrc

DX

Just a few lines in ~/.inputrc can make a surprising difference.

"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
set colored-stats on
set colored-completion-prefix on

History Prefix Search

"\e[A": history-search-backward
"\e[B": history-search-forward

The first two lines allow you to type a prefix and then pressing up and down shows entries from your history which match that history, type ssh and press up cycles back though recent calls to ssh.

If you'd prefer substring matching rather than prefix matching use:

"\e[A": history-substring-search-backward
"\e[B": history-substring-search-forward

Show All Options With A Single Tab

set show-all-if-ambiguous on

When you try to tab complete and there are many options, by default, you will get no suggestions until you tab a second time. With this enabled, it shows the suggestions after the first tab. Little thing, but reduces friction.

Case Insensitive Completion

set completion-ignore-case on

This makes tab completion case-insensitive. I'm all for case-sensitivity by default but this is one of those case where it is a bonus not to have to worry about it. It still matches on the given case first, it falls back to insensitive after.

Coloured Suggestions

set colored-stats on
set colored-completion-prefix on

When completion directory/file listings, this adds the colour coding which you're used to from ls --color.