Page MenuHomePhabricator
Paste P678

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

Authored by bd808 on May 23 2015, 8:18 PM.
Tags
None
Subscribers
None
Tokens
"Love" token, awarded by MC8.
# 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

Event Timeline

bd808 edited the content of this paste. (Show Details)May 23 2015, 8:18 PM
bd808 changed the title of this paste from untitled to Make <up>/<down> awesome in bash (add to ~/.inputrc).
bd808 updated the paste's language from autodetect to autodetect.
MC8 awarded a token.May 23 2015, 8:18 PM