Hi,
Try adding this to your .zshrc (create it if it is not there)
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/opt/X11/lib/flat_namespace
and to remove the errors you see, you can comment out from your zshenv or where ever it is:
if [ -f $HOME/.afni/help/all_progs.COMP.bash ]
then
. $HOME/.afni/help/all_progs.COMP.bash ]
fi
That may get rid of the errors, but you won't be able to use the auto complete.
let me know how if any of that helps, and we can go from there.
Thanks, Justin