I just learned the trick for setting up cdpath in tcsh and it looks pretty useful.

However, it seems that auto-complete of sub-folder names doesn't come with it. Is there any trick available on that? It'd be really cool since I'm entering certain directories a lot.

I am using tcsh 6.14.00 (Astron).

  • Do you have these in your .cshrc? "set autolist = ambiguous" and "set complete = enhance" ? – Hennes Nov 8 '13 at 23:19
  • Thanks for the reply, i just added these two into .cshrc, however seems it's not working. – Derek Nov 8 '13 at 23:27
  • Did you relog, source the file or start a new csh? (e.g. exec csh)? Which version of csh are you using? – Hennes Nov 8 '13 at 23:32
  • Yes, I did that. I'm not sure about the csh version, how can I tell? – Derek Nov 9 '13 at 6:25
  • 1
    If you still do not have an answer in a few days you might consider a bounty or moving (not cross posting) the question to Linux and unix. They have some similar questions which did get an answer. – Hennes Nov 14 '13 at 6:46

I'm using tcsh 6.18.01-3 under Debian Jessie and file complete is available with the TAB key in the same way that its available under bash.

Can you upgrade to the newer version?

Also: https://kb.iu.edu/d/aids suggests that it should just work with TAB for you. Don't use ESC key.


Try this in .tcshrc:

set autoexpand

as per https://unix.stackexchange.com/questions/19256/tab-autocompletion-and-history-in-tcsh


set expand-glob

for just files

Another source: http://linux.die.net/man/1/tcsh

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.