Instead of the above, probably easier to just do:

setopt -x