2025-03-14 21:59:59 -06:00
|
|
|
# zsh
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
> Z SHell. Mit `bash` und `sh` kompatible Eingabeaufforderung.
|
2026-02-18 06:55:01 -07:00
|
|
|
> Siehe auch: `bash`, `!`, `^`.
|
2025-06-28 19:25:29 -06:00
|
|
|
> Weitere Informationen: <https://zsh.sourceforge.io/Doc/Release/Invocation.html#Invocation>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Starte eine interaktive Eingabeaufforderung:
|
|
|
|
|
|
|
|
|
|
`zsh`
|
|
|
|
|
|
|
|
|
|
- Führe Parameter als Befehl aus:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`zsh -c "{{echo Hello world}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Führe Befehle aus einem Skript aus:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`zsh {{pfad/zu/skript.zsh}}`
|
|
|
|
|
|
|
|
|
|
- Prüfe ein Skript nach Syntaxfehlern, ohne es auszuführen:
|
|
|
|
|
|
|
|
|
|
`zsh {{[-n|--no-exec]}} {{pfad/zu/skript.zsh}}`
|
|
|
|
|
|
|
|
|
|
- Führe Befehle von `stdin` aus:
|
|
|
|
|
|
|
|
|
|
`{{echo echo Hello World}} | zsh`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Führe Befehle aus einem Skript aus und schreibe die Befehle in die Konsole:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`zsh {{[-x|--xtrace]}} {{pfad/zu/skript.zsh}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Starte eine interaktive Eingabeaufforderung, in der jeder Befehl ausgegeben wird, bevor er ausgeführt wird:
|
|
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`zsh {{[-v|--verbose]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
- Starte Zsh, ohne Nutzerkonfigurationen zu laden (z.B. `~/.zshrc`):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-06-12 17:51:25 -06:00
|
|
|
`zsh {{[-f|--no-rcs]}}`
|