Project

General

Profile

Bug #2907

Gromacs autocompletion appears to be broken with ZSH

Added by Daniel Bauer 5 months ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
documentation
Target version:
-
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Hello,

It appears that gromacs autocompletion is at least partially broken when using zsh. It does not complete filenames. Here is a little example:

Bash:

bauer@t480s:~$ ls -l | grep xe
-rw-r--r--  1 bauer bauer       387 Dec 10 10:39 xe.gro
-rw-r--r--  1 bauer bauer       571 Dec 10 10:36 xe.pdb

bauer@t480s:~$ source /opt/gromacs-2018/bin/GMXRC
# this gives me working autocompletion for editconf, -f and also finds xe.pdb when typing x<TAB>
bauer@t480s:~$ gmx editconf -f xe.pdb

ZSH:

t480s% source /opt/gromacs-2018/bin/GMXRC
# this gives me working autocompletion for editconf and -f, however, autocompletion of files (xe.pdb) is not working 
t480s% gmx editconf -f xe<TAB>

All this was done with a minimal .zshrc/.bashrc and no plugins, customizations or whatsoever (except loading compinit in .zshrc). From a short glance over the code of gmx-autocompletion.bash it appears that the variable "$p$" that is responsible for the next switch statement is not populated in zsh for some reason (I wasn't able to find out why). Please let me know if more information is needed.

History

#1 Updated by Floris van Eerden about 1 month ago

I have the same issue... Did anybody by any chance find a solution?

Also available in: Atom PDF