#!/bin/zsh autoload -U compinit compinit function testfunc { local flag_strings=() local anything } testfunc echo "Ok, try tab completion..."