Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

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

2 Answers 2

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.

share|improve this answer

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.