Parts of the zsh Shell
This section walks you through the basics of the zsh shell, showing the built-in commands that are available (or can be added by installing modules), as well as the command line parameters and environment variables used by the zsh shell.
Shell options
Most shells use command line parameters to define the behavior of the shell. The zsh shell uses a few command line parameters to define the operation of the shell, but mostly it uses options to customize the behavior of the shell. You can set shell options either on the command line or within the shell itself using the set
command.
Table 23.3 lists the command line parameters available for the zsh shell.
Table 23.3 The zsh Shell Command Line Parameters
Parameter | Description |
-c |
Executes only the specified command and exits |
-i |
Starts as an interactive shell, providing a command line interface prompt |
-s |
Forces the shell to read commands from STDIN |
-o |
Specifies command line options |
Although this may seem...