1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/zsh.md
Emily Grace Seville e8a69508c9
zsh: refresh page (#7990)
* Refresh a page:
- better grammar
- better token syntax

* Add reading from stdin example

* Apply suggestions from code review

Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>

* Make page consistent with `pwsh` page

* Update pages/common/zsh.md

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

Co-authored-by: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-01-08 01:25:25 +10:00

37 lines
823 B
Markdown

# zsh
> Z SHell, a Bash-compatible command-line interpreter.
> See also: `bash`, `histexpand`.
> More information: <https://www.zsh.org>.
- Start an interactive shell session:
`zsh`
- Execute specific [c]ommands:
`zsh -c "{{echo Hello world}}"`
- Execute a specific script:
`zsh {{path/to/script.zsh}}`
- Check a specific script for syntax errors without executing it:
`zsh --no-exec {{path/to/script.zsh}}`
- Execute specific commands from stdin:
`{{echo Hello world}} | zsh`
- Execute a specific script, printing each command in the script before executing it:
`zsh --xtrace {{path/to/script.zsh}}`
- Start an interactive shell session in verbose mode, printing each command before executing it:
`zsh --verbose`
- Execute a specific command inside `zsh` with disabled glob patterns:
`noglob {{command}}`