Using Completion in the zsh Shell
The zsh shell also offers completion but with added twists over the bash shell for the power user. Basically, though, you can type just part of a command, press , and have the Z-shell complete the command for you (Code Listing 3.10).
Code Listing 3.10. In this example, we typed only the ls command followed by cd pub and pressed the key; zsh completed the command for us.
$ ls CompleteNewProject bogus2 → ftp puppy Completed News dead.letter → mail temp Mail access files → public_html testme $ cd public_html/ $ |
To use completion in the zsh shell:
1. | ls -l
Use ls -l to list the files in your current directory. ... |
Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.