Page MenuHomePhabricator

Make <up>/<down> awesome in bash (add to ~/.inputrc)

Authored By
bd808
May 23 2015, 8:18 PM
Size
458 B
Referenced Files
None
Subscribers
None

Make <up>/<down> awesome in bash (add to ~/.inputrc)

# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
163789
Default Alt Text
Make <up>/<down> awesome in bash (add to ~/.inputrc) (458 B)

Event Timeline