zsh: use local variables in `up` function