Hi 2086,
It looks like you can import the bash completion function into zsh, though the completion syntax for some of the AFNI programs does not work in zsh. We should try to clean that up (there might be 16 programs with issues : 1ddot 1deval 1dplot 3dAllineate 3dDeconvolve 3dmerge 3dTcat 3dTstat 3dttest++ afni afni_open apsearch meica.py plugout_drive to3d whereami).
But to get many programs, put a couple of autoload commands before sourcing the .help file, as in:
autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
source ~/.afni/help/all_progs.COMP.bash
I will make a note to look at this. Please let me know how it goes.
- rick