2025-07-24 22:27:13 -06:00
|
|
|
# zsh
|
|
|
|
|
|
|
|
|
|
> Z SHell, een Bash-compatibele commandoregel-interpreteerder.
|
2026-02-18 06:55:01 -07:00
|
|
|
> Zie ook: `bash`, `!`, `^`.
|
2025-07-24 22:27:13 -06:00
|
|
|
> Meer informatie: <https://zsh.sourceforge.io/Doc/Release/Invocation.html#Invocation>.
|
|
|
|
|
|
|
|
|
|
- Start een interactieve shell sessie:
|
|
|
|
|
|
|
|
|
|
`zsh`
|
|
|
|
|
|
|
|
|
|
- Voer specifieke [c]ommando's uit:
|
|
|
|
|
|
|
|
|
|
`zsh -c "{{echo Hello world}}"`
|
|
|
|
|
|
|
|
|
|
- Voer een specifiek script uit:
|
|
|
|
|
|
|
|
|
|
`zsh {{pad/naar/script.zsh}}`
|
|
|
|
|
|
|
|
|
|
- Controleer een specifiek script op syntax fouten zonder het uit te voeren:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`zsh {{[-n|--no-exec]}} {{pad/naar/script.zsh}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Voer specifieke commando's uit van `stdin`:
|
|
|
|
|
|
|
|
|
|
`{{echo Hello world}} | zsh`
|
|
|
|
|
|
|
|
|
|
- Voer een specifiek script uit en toon elke opdracht in het script voordat deze wordt uitgevoerd:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`zsh {{[-x|--xtrace]}} {{pad/naar/script.zsh}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Start een interactieve shell sessie in verbose modus en toon elke opdracht voordat deze wordt uitgevoerd:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`zsh {{[-v|--verbose]}}`
|
2025-07-24 22:27:13 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Start Zsh zonder het laden van user-level configuratie (bijv. `~/.zshrc`):
|
2025-07-24 22:27:13 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`zsh {{[-f|--no-rcs]}}`
|