我想在 zsh 退出代码值中打印每个启动的命令。例如
$ cat file_not_present cat: file_not_present: No such file or directory Exit code 1
我只知道我可以打印在终端中启动的最后一个命令的错误代码
$ echo $?
我能怎么做?
zsh terminal exit-status
exit-status ×1
terminal ×1
zsh ×1