2019-08-15 06:56:24 +01:00
|
|
|
# zsh
|
|
|
|
|
|
|
|
> Z SHell.
|
2019-10-18 04:30:29 +01:00
|
|
|
> 与 `bash` 和 `sh` 兼容的命令行解释器.
|
2019-10-18 03:33:27 +01:00
|
|
|
> 更多信息:<https://www.zsh.org>.
|
2019-08-15 06:56:24 +01:00
|
|
|
|
2019-10-19 07:12:27 +01:00
|
|
|
- 启动交互式解释器:
|
2019-08-15 06:56:24 +01:00
|
|
|
|
|
|
|
`zsh`
|
|
|
|
|
2019-10-19 07:12:27 +01:00
|
|
|
- 执行从参数传入的命令:
|
2019-08-15 06:56:24 +01:00
|
|
|
|
|
|
|
`zsh -c {{command}}`
|
|
|
|
|
2019-10-18 03:33:27 +01:00
|
|
|
- 从文件执行命令 (脚本):
|
2019-08-15 06:56:24 +01:00
|
|
|
|
|
|
|
`zsh {{file}}`
|
|
|
|
|
2019-10-19 07:12:27 +01:00
|
|
|
- 从文件执行命令并将执行过的命令打印到终端:
|
2019-08-15 06:56:24 +01:00
|
|
|
|
|
|
|
`zsh -x {{file}}`
|