Tweaking Bash 'cd' and TAB completion to recognize spelling mistakes
Completion is a feature of readline
.
You can enable case insensitive completion either by:
1) Adding to your ~/.bashrc
:
bind 'set completion-ignore-case on'
OR
2) Adding to your /etc/inputrc
:
set completion-ignore-case on
Notes:
/etc/inputrc
, as @mak comments, effects all shells that usereadline
, and not justbash
.This will make all completions case insensitive.