Skip to content

Instantly share code, notes, and snippets.

@halfelf
Created July 2, 2019 02:21
Show Gist options
  • Save halfelf/6dac3b978989720f3985404b97e59edb to your computer and use it in GitHub Desktop.
Save halfelf/6dac3b978989720f3985404b97e59edb to your computer and use it in GitHub Desktop.
case insensitive bash completion
# 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
# add option to /etc/inputrc to enable case-insensitive tab completion for all users
# echo 'set completion-ignore-case On' >> /etc/inputrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment