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
marchersimon 30ec44ef43
zsh: add noglob example (#8179)
* zsh: add noglob example

Co-authored-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2022-07-18 11:50:16 +05:30

621 B

zsh

Z SHell, a Bash-compatible command-line interpreter. See also histexpand for history expansion. More information: https://www.zsh.org.

  • Start an interactive shell session:

zsh

  • Execute a command and then exit:

zsh -c "{{command}}"

  • Execute a script:

zsh {{path/to/script.zsh}}

  • Execute a script, printing each command 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}}