Zsh completions

With the last update of macOS, the default shell has changed from bash to zsh. There is documentation on the gmt web page describing how to revert to the bash shell and how to set up bash-completions, but unfortunately, the bash completions don’t seem to work with zsh.

In general, zsh can deal with bash completion files by adding the following to your .zshrc file:

autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
source /usr/local/etc/bash_completion.d/gmt_completion.bash

but this doesn’t work.

Has anyone got the gmt bash completions to work in zsh?