Under Windows, using PowerShell, is it possible to make the filename suggestion (using the Tab key) work like with bash under Linux?
Let's assume a directory contains 3 directories: example1
, example
and examination
.
On Windows (by default), if you type cd ex
and Tab, it will auto-suggest cd .\examination
. Subsequent uses of Tab will rotate the suggestion between example1
, example
and examination
.
Using bash (typically under Linux), if you type cd ex
and Tab, it will auto-complete until the character where the filenames start to differ: cd exam
. Another use of Tab then suggests which directories are available:
$ cd exam
examination/ example1/ example2/
Then, if you type p and Tab, it will auto-complete to example
, and so on (here, offering a choice between example1
and example2
).
Is there a way to make the filename suggestion work in a tree-like search like this, instead of rotating through the names?
(I'm mainly interested in file names. Bash can also refine this selection based on the file type, for example only directories for cd
, which would be good, but having the file name selection itself would be enough.)