/usr/share/gromacs/shell-specific/gmx-completion-gmx.bash is in gromacs-data 2018.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1
complete -o nospace -F _gmx_compl gmx