ZSH Reference Card
ZSH Reference Card
2
Contents general in part 1, concentrating on bash and ash in parts 2 and 3.
1 General information, references The contents of the book are as follows; where noted with page
2 Grammar (shell syntax) references to this card they expand on the brief hints here.
3 Patterns: globbing and qualifiers
4 Options Part 1 (Introducing the Shell) contains the following chapters:
5 Options cont.; option aliases, single letter options 1 Introduction to Shells
6 Expansion: basic forms, history, prompts 2 Using Shell Features Together
7 Expansion: variables: forms and flags 3 More Shell Features
8 Shell variables: set by shell, used by shell (c.f. page 2)
9 Test operators; numeric expressions
10 Completion: contexts, completers, tags Part 2 (Using bash and zsh) contains the following chapters:
11 Completion cont.: tags cont, styles 4 Entering and Editing the Command Line
12 Completion cont.: styles cont, utility functions (c.f. pages 6 and 13)
13 Zsh line editor (zle) 5 Starting the Shell
(c.f. pages 4 and 5)
Notes 6 More About Shell History
The descriptions here are very brief. You will not be able to learn (c.f. pages 6 and 8)
shell syntax from them; see the various references below. In 7 Prompts
particular the completion system is extremely rich and the (c.f. page 6)
descriptions of its utility functions are the barest memory joggers. 8 Files and Directories
(c.f. page 9)
The start and end of each section is aligned with page boundaries, 9 Pattern Matching
so you can print out only the parts you want to refer to. (c.f. page 3)
10 Completion
References (c.f pages 10 through 12)
Zsh manual: Supplied with the shell: should be installed in Unix 11 Jobs and Processes
manual page and info formats. Texinfo generates PS or PDF; (c.f. page 6)
available as separate doc bundle from same place as the shell.
Part3 (Extending the Shell) contains the following chapters:
http://zsh.sunsite.dk/: Site with much information 12 Variables
about zsh, including HTML manual and a more userfriendly (c.f. pages 7 and 8)
guide to the shell, as well as the FAQ. 13 Scripting and Functions
(c.f. page 2)
Zsh wiki: http://www.zshwiki.org/: Extensible zsh web 14 Writing Editor Commands
pages written by users. (c.f page 13)
15 Writing Completion Functions
From Bash to Z Shell: Conquering the Command Line, by (c.f. pages 10 through 12)
Oliver Kiddle, Jerry Peek and Peter Stephenson, Apress, ISBN 1
59059 376 6. Introduction to interactive use of Unix shells in
Page 2 Zsh Reference Card Version 4.2