The Computer Oracle

How do I reload .inputrc?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 How Do I Reload .Inputrc?
00:22 Accepted Answer Score 97
00:36 Answer 2 Score 13
00:52 Answer 3 Score 96
01:21 Answer 4 Score 27
01:30 Thank you

--

Full question
https://superuser.com/questions/241187/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#bash #unix #readline #inputrc

#avk47



ACCEPTED ANSWER

Score 97


By default, C-x C-r is bound to re-read-init-file.

See the Bash Reference Manual for explanation.




ANSWER 2

Score 96


You can also reload new entries from command line using bind -f ~/.inputrc. That will load the entries in .inputrc. Note that it just does a load, not a "reload" - so it doesn't reset any lines you happen to have removed from the .inputrc.

To quickly test from a clean slate, just run bash then work inside that new nested shell (or start a new terminal).




ANSWER 3

Score 27


This worked for me

bind -f ~/.inputrc

https://unix.stackexchange.com/questions/153357/inputrc-file-not-sourcing-correctly/246422#246422




ANSWER 4

Score 13


In .inputrc first choose your binding and after bind the re-read-init-file function:

set editing-mode vi
"\C-x\C-r": re-read-init-file

Press CTRL and x, release both, press CTRL and r.