Zsh: The Z Shell, from Interactive Use to Scripting

Shriira Press

Preface

A comprehensive, self-contained guide to Zsh — the Z shell — the powerful, interactive command-line shell that is the default on macOS and a favori…

Welcome to Zsh: The Z Shell, from Interactive Use to Scripting.

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).

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — What Is Zsh?
  2. Chapter 2 — Getting Started: Installation, Startup Files, and the Basics
  3. Chapter 3 — The Interactive Shell: Line Editing, History, and Navigation
  4. Chapter 4 — Parameters, Variables, and Expansion
  5. Chapter 5 — Arrays and Associative Arrays
  6. Chapter 6 — Globbing and Filename Generation
  7. Chapter 7 — Quoting, Word Splitting, and Expansion Order
  8. Chapter 8 — Control Flow and Conditionals
  9. Chapter 9 — Functions, Scripts, and the Command Line
  10. Chapter 10 — I/O, Redirection, Pipes, and Process Management
  11. Chapter 11 — Completion, the Prompt, and Customization
  12. Chapter 12 — Frameworks, Plugins, and the Ecosystem
  13. Chapter 13 — Zsh in Practice and the Profession
  14. Appendix A — Glossary and Quick Reference
  15. Appendix B — Further Reading and Resources
0%
1/1