Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
zsh Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`