For C Shell is there a way to make tab completion for commands, files etc. case insensitive?
I saw the complete=enhance
variable, but that is only for tcsh, not csh.
It can be enabled for all future bash sessions by putting set completion-ignore-case on into the users's ~/. inputrc file, or the system /etc/inputrc , to enable it for all users.
The command line in Linux is case sensitive. When you use tab completion to quickly change or list directories on the command line, you must match the case of the directory names.
One extremely time-saving feature built into the Bash Shell is the ability to "tab-complete" commands. Simply hit the tab key while you are typing a command, and the shell will automatically finish the command for you. Or, if it is ambiguous, it will provide options (you might have to type tab again).
Here's a more verbose answer for the uber newbs:
Ratheesh Pai's answer is correct, but if you want the settings to persist, you want to write the commands to your .cshrc
file. This file is executed any time you open a shell (assuming the .cshrc
file is in your home directory. Think of the .cshrc
file as a settings file - you add whatever personal preferences you want into it...
Here's how to setup tab completion:
cd ~
vim .cshrc
.cshrc
set autolist = ambiguous
set complete = enhance
Then quit VIM.
Last, either re-open your shell (or source the .cshrc
file):
source ./.cshrc
Then give it a shot, you should be able to case-insensitive tab complete.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With