Modifying Readline Behavior
The Bash shell uses the GNU Readline library[18] to process command input. Other tools you’ll encounter also use this library, including the MySQL console, interactive shells for Python, Node.js, and Ruby, and many other tools. Many of the keyboard shortcuts and behaviors you’ve learned about so far are available in any tool that uses this library.
The .inputrc file lets you define options that affect any program that uses the Readline library. It lets you control how tab completion works, and lets you define additional keyboard shortcuts for working with text and how some aspects of command history behave.
On some systems, the file /etc/inputrc contains a bunch of default settings. Check to see if this file exists ...
Get Small, Sharp Software Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.