Adding to Your zsh Path

One of the most useful changes you can make to your environment is adding to the default path, which is determined by the path statement. The path statement tells the shell where to look for commands, scripts, and programs. That is, if you issue a command, the path statement tells the system to look for that command in each of the named directories in a specific order.

Be sure not to remove anything from your path unless you really know what you’re doing, but feel free to add as many additional directories to it as you want. For example, if you get started writing scripts (as described in Chapter 10), you might put them in a scripts subdirectory and want to add that directory to your path.

As the following steps show, ...

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.