📜  将 bash 建议更改为不区分大小写 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:22.082000             🧑  作者: Mango

代码示例1
# If ~/.inputrc doesn't exist yet: First include the original /etc/inputrc
# so it won't get overriden
if [ ! -a ~/.inputrc ]; then echo '$include /etc/inputrc' > ~/.inputrc; fi

# Add shell-option to ~/.inputrc to enable case-insensitive tab completion
echo 'set completion-ignore-case On' >> ~/.inputrc