一、测试环境为:树莓派3B+
详情如下所示:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
二、~路径下增加 .inputrc 文件(注意inputrc前有 . )
一般情况下,在Linux环境下的 ~
目录下是没有 .inputrc
文件的,需手动创建并赋值,树莓派亦如此。
pi@raspberrypi:~ $ cd ~
pi@raspberrypi:~ $ echo 'set completion-ignore-case on' >> .inputrc
pi@raspberrypi:~ $ ls -al
total 136
drwxr-xr-x 18 pi pi 4096 Aug 22 19:17 .
drwxr-xr-x 3 root root 4096 May 3 08:39 ..
-rw------- 1 pi pi 6047 Aug 21 21:06 .bash_history
-rw-r--r-- 1 pi pi 220 May 3 08:07 .bash_logout
-rw-r--r-- 1 pi pi 3523 May