Created
July 2, 2019 02:21
-
-
Save halfelf/6dac3b978989720f3985404b97e59edb to your computer and use it in GitHub Desktop.
case insensitive bash completion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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