cshell tab completion , case insensitive
Asked Answered
E

2

10

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.

Estivation answered 20/7, 2010 at 8:50 Comment(0)
E
15
set autolist = ambiguous 
set complete = enhance 
Estivation answered 22/7, 2010 at 6:57 Comment(2)
set complete = enhance completes . as anything. Without it its case sensitive. I'm irrationally annoyed by this.Highness
Does this not have a solution? I want case insensitive but keep "." as "."; I can't even escape the period or something.Escrow
F
6

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

Insert in the two lines below into .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.

Fuss answered 30/4, 2018 at 21:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.