Z Shell Options

The Z Shell has a number of options that you can use to alter the behavior of the shell. Table 15-25 describes many of the available options. Refer to the zsh options man page (zshoptions) for a complete list.

Z Shell option names are not case sensitive and ignore underscores. The following names refer to the same option: ignoreeof, IGNOREEOF, Ignore_EOF, IGNORE_EOF, IgN___oRe_EoF. (The last name would not be a good choice because it is difficult both to read and to type.) This book uses all uppercase letters to show option names.

The set builtin sets and unsets options. Use set –o to set, or turn on, an option and set +o to unset it, or turn it off.

zsh % set –o IGNORE_EOF 
zsh % set +o MARK_DIRS
					

These commands turn on the ...

Get A Practical Guide to Red Hat® Linux® 8 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.