2016-02-19 16:53:19 +00:00
|
|
|
# zsh
|
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
> Z SHell, a Bash-compatible command line interpreter.
|
2021-04-04 21:07:13 +01:00
|
|
|
> See also `histexpand` for history expansion.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://www.zsh.org>.
|
2016-02-19 16:53:19 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Start an interactive shell session:
|
2016-02-19 16:53:19 +00:00
|
|
|
|
|
|
|
`zsh`
|
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Execute a command and then exit:
|
2016-02-19 16:53:19 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
`zsh -c "{{command}}"`
|
2016-02-19 16:53:19 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Execute a script:
|
2016-02-19 16:53:19 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
`zsh {{path/to/script.zsh}}`
|
2016-02-19 16:53:19 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
- Execute a script, printing each command before executing it:
|
2016-02-19 16:53:19 +00:00
|
|
|
|
2021-04-14 15:07:21 +01:00
|
|
|
`zsh --xtrace {{path/to/script.zsh}}`
|
|
|
|
|
|
|
|
- Start an interactive shell session in verbose mode, printing each command before executing it:
|
|
|
|
|
|
|
|
`zsh --verbose`
|