在~目录下,新建文件.inputrc
~
.inputrc
在文件里面写上:
set completion-ignore-case on set show-all-if-ambiguous on
保存,然后重启终端。