How do I get tcsh to stop asking if I want to list files in a directory that may have a lot of auto-completes?

For example, if I do: xemacs ../"TAB" to get the list of files it asks:

There are 371 rows, list them anyway? [n/y]

I don't want it to ask this, just list them.. it's getting tiresome.

(Or how to at least set the tolerance to a higher number of auto-completes before it asks)

Thanks.

link|improve this question
3  
This isn't being done by linux (which is a kernel), it's being done by bash – Daenyth Jun 28 '11 at 15:36
@Daenyth The OP specifies tcsh (which is a little more obvious in the edit). But, yeah. – new123456 Jun 28 '11 at 16:26
feedback

migrated from stackoverflow.com Jun 28 '11 at 15:35

This question came from our site for professional and enthusiast programmers.

2 Answers

In your inputrc file, set the following variable:

set completion-query-items xxxxx

where xxxxx is the number of items at which you will be asked to display or not.

link|improve this answer
This works for bash, but not tcsh – KeithB Jul 1 '11 at 18:10
feedback

In your $HOME/.cshrc, you want to add

set listmax = 10000
set listmaxrows = 1000

From the manpage

listmax and listmaxrows can be set to limit the number of items and rows (respectively) that are listed without asking first.

You can adjust the numbers to suit your individual tastes.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown