zsh: add swap usage to local function