Programming · Ebook
Zsh: The Z Shell, from Interactive Use to Scripting
by Shriira Press
A comprehensive, self-contained guide to Zsh — the Z shell — the powerful, interactive command-line shell that is the default on macOS and a favorite of developers everywhere. Zsh is two things at once: a superb interactive shell (line editing, history, the best completion system of any shell, themeable prompts, spelling correction) and a full scripting language (variables, arrays, functions, control flow, and the most powerful filename globbing in any shell). This book teaches both, end to end — startup files, the interactive shell, parameters and expansion, arrays, globbing, quoting, control flow, functions and scripts, I/O and job control, the completion system and prompt, frameworks and plugins, and real-world practice — blending intuition (what the shell is doing and why), concepts (the language and its rules), and runnable code (real zsh you can type and adapt).
Contents
- 1Preface
- 2Chapter 1 — What Is Zsh?
- 3Chapter 2 — Getting Started: Installation, Startup Files, and the Basics
- 4Chapter 3 — The Interactive Shell: Line Editing, History, and Navigation
- 5Chapter 4 — Parameters, Variables, and Expansion
- 6Chapter 5 — Arrays and Associative Arrays
- 7Chapter 6 — Globbing and Filename Generation
- 8Chapter 7 — Quoting, Word Splitting, and Expansion Order
- 9Chapter 8 — Control Flow and Conditionals
- 10Chapter 9 — Functions, Scripts, and the Command Line
- 11Chapter 10 — I/O, Redirection, Pipes, and Process Management
- 12Chapter 11 — Completion, the Prompt, and Customization
- 13Chapter 12 — Frameworks, Plugins, and the Ecosystem
- 14Chapter 13 — Zsh in Practice and the Profession
- 15Appendix A — Glossary and Quick Reference
- 16Appendix B — Further Reading and Resources
