inputrc文件无法加载

use*_*088 4 linux bash shell csh rc

我只是想通了我们可以创建一个~/.inputrc文件来定义键盘映射.但我不知道如何加载它.我试图获取它,但我立即得到'set Syntax Error'.我~/.inputrc从这里复制了文件:http://www.linuxfromscratch.org/lfs/view/6.2/chapter07/inputrc.html

它提到它是使用Readline加载的.那是什么意思?

Sat*_*ish 7

 $ bind -f ~/.inputrc
Run Code Online (Sandbox Code Playgroud)

-f filename:从中读取键绑定filename.

 $ help bind
Run Code Online (Sandbox Code Playgroud)

注意:它是一个内置的bash命令,所以它只能用于bashsh.它不适用于shell kshcshshell,对于tcsh或csh shell,你需要使用bindkey命令.有关更多帮助:bindkey