#compdef xd function _xd { typeset -a targets targets=("${(@f)$(xd -l)}") _describe target targets }