This article introduces how to configure case-insensitive tab completion in the Bash language command line on Linux PCs and servers. You don’t have to worry about uppercase anymore.
yuis on ASUS at /mnt/c/pg/20190318174120$ mkdir hoge Hogehoge
yuis on ASUS at /mnt/c/pg/20190318174120$ ls hoge
hoge/ Hogehoge/
Add the following to /etc/inputrc.
set completion-ignore-case On
command line - Can I make Tab auto-completion case-insensitive in Bash? - Ask Ubuntu
Update
Sometimes inputrc doesn’t get loaded even though it worked once. It’s unstable. I’m not sure if it’s because it’s WSL.
bind "set completion-ignore-case on"
Running this as a command makes it work. Instead of writing it in inputrc, it might be more reliable to write this in bashrc.