Refactored for zsh proc redirection