Вопрос

How do I use cd such that when I type 'cd wo' and there is only one directory starting with 'wo' (say, 'work'), that cd cd's into work? I think I remember doing this and I did not make a custom alias.

Это было полезно?

Решение

In Bash, pressing the "tab" key will autocomplete paths and directories.

So cd wo[tab] becomes cd work.

More on other forms of Bash autocompletion here.

Другие советы

You're probably looking for bash-completion.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top