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

26 lines
527 B
Markdown
Raw Normal View History

2016-02-19 22:23:19 +05:30
# zsh
> Z SHell, a Bash-compatible command line interpreter.
> See also `histexpand` for history expansion.
> More information: <https://www.zsh.org>.
2016-02-19 22:23:19 +05:30
- Start an interactive shell session:
2016-02-19 22:23:19 +05:30
`zsh`
- Execute a command and then exit:
2016-02-19 22:23:19 +05:30
`zsh -c "{{command}}"`
2016-02-19 22:23:19 +05:30
- Execute a script:
2016-02-19 22:23:19 +05:30
`zsh {{path/to/script.zsh}}`
2016-02-19 22:23:19 +05:30
- Execute a script, printing each command before executing it:
2016-02-19 22:23:19 +05:30
`zsh --xtrace {{path/to/script.zsh}}`
- Start an interactive shell session in verbose mode, printing each command before executing it:
`zsh --verbose`