#compdef zed fned histed case $service in (fned) _arguments -S : ':shell function:_functions';; (histed) _arguments -S : \ '1:history file:_files' \ '2:history size: ';; (zed) _arguments -S : \ '(- 2):file:_files' \ '(-h 1 2)-f[edit function]:shell function:_functions' \ '(-h 1 2)-x+[specify spaces to use for indentation in function expansion]:spaces' \ '(-f -x 1)-h[edit history]:history file:_files' \ '2:history size: ';; esac