Case-insesnitive tab auto-complete in the Terminal

For a User

Add the following at the end of your ~/.bashrc (Linux) or ~/.bash_profile (macOS) file.

# Case-insensitive Tab auto-complete
$include /etc/inputrc
set completion-ignore-case on

You may get a Permission denied error. In that case just add it to the system-wide file

For the System

sudo nano /etc/inputrc

Add the following at the end of the file

# Case-insensitive Tab auto-complete
set completion-ignore-case on

source