문제

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