6

I've worked in Linux before where when I press tab it autocompletes until it becomes ambiguous. If I pressed tab twice at that point it would give me a list of all possible completions.

My current Linux environment does not have the second feature(enabled?). So if I press tab it will autocomplete but it won't list all possible completions after that.

How can I add/enable this feature?

EDIT: turns out it's in csh not bash

jlliagre
  • 60,319
  • 10
  • 115
  • 157
greggmi
  • 163
  • 1
  • 7
  • 1
    What environment is this? Yes, we are accustomed to be pampered by Linux and GNU tools. – vonbrand Jun 19 '14 at 23:26
  • Redhat Release 5.6 – greggmi Jun 19 '14 at 23:56
  • I don't know if it is configured exactly the same on a RH (I don't have one to check atm), but there should be a `/etc/bash_completion` file coming with bash, which you only need to source In you own session startup scripts (or enable site wide in `/etc/bash.bashrc`). – didierc Jun 22 '14 at 16:58

2 Answers2

2

Try this :

in ~/.cshrc put

set filec
set autolist

if you don't want list when autocompletes, use

set autolist = ambiguous 
set complete = enhance
αғsнιη
  • 40,939
  • 15
  • 71
  • 114
DNS1
  • 99
  • 4
1

To set autolist to show choices only when completion fails and adds no new characters to the word being completed:

set autolist ambiguous
αғsнιη
  • 40,939
  • 15
  • 71
  • 114
scott
  • 11
  • 1