[gmx-users] tab completion gmx

Mark Abraham mark.j.abraham at gmail.com
Fri Sep 5 16:13:51 CEST 2014


Hi,

Ah, you're doubtless installing from a git repo, and the completions are
not built and installed by default there. That's because we need to be able
to run the tools at build time to generate the completion-database files,
since the local repo might have changed everything, but it's inconvenient
to work out whether that's possible on the machine in use and adapt the
build system accordingly... The completions are pre-built in the normal
distribution tarball.

If you're on a normal machine and use

cmake -DGMX_BUILD_HELP=on

then the resulting installation will have a GMXRC that when sourced will
provide command-line completion.

Mark


On Fri, Sep 5, 2014 at 11:46 AM, Viveca Lindahl <vivecal at kth.se> wrote:

> I see that links like 'g_energy ->  gmx' get available if I source GMXRC.
> But type 'gmx e' + Tab I don't get 'gmx energy' as a completion, which
> would have been nice.
>
> Viveca
>
>
> On Tue, Sep 2, 2014 at 4:27 PM, Mark Abraham <mark.j.abraham at gmail.com>
> wrote:
>
> > Hi,
> >
> > Yes, with GMXRC sourced, under bash you should see completion work in the
> > same kind of way that git does.
> >
> > Mark
> >
> >
> > On Tue, Sep 2, 2014 at 11:31 AM, Viveca Lindahl <vivecal at kth.se> wrote:
> >
> > > Hi all,
> > >
> > > Should I expect the tab completion of gmx to work (e.g. as with git)?
> Or
> > is
> > > the idea to create aliases like g_energy='gmx energy' for everything
> > that I
> > > use?
> > >
> > > Viveca
> > > --
> > > Gromacs Users mailing list
> > >
> > > * Please search the archive at
> > > http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> > > posting!
> > >
> > > * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> > >
> > > * For (un)subscribe requests visit
> > > https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> > > send a mail to gmx-users-request at gromacs.org.
> > >
> > --
> > Gromacs Users mailing list
> >
> > * Please search the archive at
> > http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> > posting!
> >
> > * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
> >
> > * For (un)subscribe requests visit
> > https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> > send a mail to gmx-users-request at gromacs.org.
> >
> --
> Gromacs Users mailing list
>
> * Please search the archive at
> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
> posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
> send a mail to gmx-users-request at gromacs.org.
>


More information about the gromacs.org_gmx-users mailing list