This is probably an usual request, but is there any way to close (or redirect to /dev/null) all open file descriptors known / opened by zsh?
Let's assume I have e.g.
And various other redirections / file descriptor creations / dups.
Is there a way to close all of them in a concise way that does not affect e.g. shell pipelines and redirection (i.e., stdout and stderr)?