zsh: shorten local function