Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)


share|improve this question

migrated from Jun 28 '11 at 15:35

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

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

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

You must log in to answer this question.