A User's Guide to the Z-Shell.
Peter Stephenson — 2003/03/23
Table of Contents⚓︎
- Chapter 1: A short introduction
- Chapter 2: What to put in your startup files
- 2.1: Types of shell: interactive and login shells
- 2.2: All the startup files
- 2.3: Options
- 2.4: Parameters
- 2.5: What to put in your startup files
- 2.5.1: Compatibility options: SH_WORD_SPLIT and others
- 2.5.2: Options for csh junkies
- 2.5.3: The history mechanism: types of history
- 2.5.4: Setting up history
- 2.5.5: History options
- 2.5.6: Prompts
- 2.5.7: Named directories
- 2.5.8: `Go faster' options for power users
- 2.5.9: aliases
- 2.5.10: Environment variables
- 2.5.11: Path
- 2.5.12: Mail
- 2.5.13: Other path-like things
- 2.5.14: Version-specific things
- 2.5.15: Everything else
- Chapter 3: Dealing with basic shell syntax
- 3.1: External commands
- 3.2: Builtin commands
- 3.2.1: Builtins for printing
- 3.2.2: Other builtins just for speed
- 3.2.3: Builtins which change the shell's state
- 3.2.4: cd and friends
- 3.2.5: Command control and information commands
- 3.2.6: Parameter control
- 3.2.7: History control commands
- 3.2.8: Job control and process control
- 3.2.9: Terminals, users, etc.
- 3.2.10: Syntactic oddments
- 3.2.11: More precommand modifiers: exec , noglob
- 3.2.12: Testing things
- 3.2.13: Handling options to functions and scripts
- 3.2.14: Random file control things
- 3.2.15: Don't watch this space, watch some other
- 3.2.16: And also
- 3.3: Functions
- 3.4: Aliases
- 3.5: Command summary
- 3.6: Expansions and quotes
- 3.7: Redirection: greater-thans and less-thans
- 3.8: Shell syntax: loops, (sub)shells and so on
- 3.9: Emulation and portability
- 3.10: Running scripts
- Chapter 4: The Z-Shell Line Editor
- Chapter 5: Substitutions
- 5.1: Quoting
- 5.2: Modifiers and what they modify
- 5.3: Process Substitution
- 5.4: Parameter substitution
- 5.4.1: Using arrays
- 5.4.2: Using associative arrays
- 5.4.3: Substituted substitutions, top- and tailing, etc.
- 5.4.4: Flags for options: splitting and joining
- 5.4.5: Flags for options: GLOB_SUBST and RC_EXPAND_PARAM
- 5.4.6: Yet more parameter flags
- 5.4.7: A couple of parameter substitution tricks
- 5.4.8: Nested parameter substitutions
- 5.5: That substitution again
- 5.6: Arithmetic Expansion
- 5.7: Brace Expansion and Arrays
- 5.8: Filename Expansion
- 5.9: Filename Generation and Pattern Matching
- Chapter 6: Completion, old and new
- 6.1: Completion and expansion
- 6.2: Configuring completion using shell options
- 6.3: Getting started with new completion
- 6.4: How the shell finds the right completions
- 6.5: Configuring completion using styles
- 6.6: Command widgets
- 6.7: Matching control and controlling where things are inserted
- 6.8: Tutorial
- 6.9: Writing new completion functions and widgets
- 6.9.1: Loading completion functions: compdef
- 6.9.2: Adding a set of completions: compadd
- 6.9.3: Functions for generating filenames, etc.
- 6.9.4: The zsh/parameter module
- 6.9.5: Special completion parameters and compset
- 6.9.6: Fancier completion: using the tags and styles mechanism
- 6.9.7: Getting the work done for you: handling arguments etc.
- 6.9.8: More completion utility functions
- 6.10: Finally
- Chapter 7: Modules and other bits and pieces Not written
- Appendix 1: Obtaining zsh and getting more information Not written