zsh: update local function