Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'tab-completion with directories' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
tab-completion with directories
Authored by: tapella on Mar 06, '01 12:10:15PM

Just realized that I forgot to mention how this works with directory navigation. Here's an example:

to do this properly:
cd /Users/username/temp/directory with spaces

you could type this:
cd /U[tab]/use[tab]/temp/dir[tab]

The tab positions are completely arbitrary. As long as what you've typed is unique the shell will know what to fill in. The win here really comes with the last directory name.

You have to complete each directory name in the path. It will complete the name of a directory in the path you've specified so far. (ie. cd /U[tab] will complete to cd /Users)



[ Reply to This | # ]