# GMXRC for the Fish shell

**URL:** <https://gromacs.bioexcel.eu/t/gmxrc-for-the-fish-shell/2873>\
**Category:** Third party tools and files\
**Created:** [September 27, 2021, 8:37am UTC](https://gromacs.bioexcel.eu/t/gmxrc-for-the-fish-shell/2873 "2021-09-27T08:37:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjohansson](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pjohansson/32/316_2.png) [@pjohansson](https://gromacs.bioexcel.eu/u/pjohansson)\
**Post date:** [September 27, 2021, 8:37am UTC](https://gromacs.bioexcel.eu/t/gmxrc-for-the-fish-shell/2873/1 "2021-09-27T08:37:49Z")

</div>

Brief description of tools/files: Gromacs installs a few GMXRC files alongside its binary in $GROMACS\_DIR/bin. By sourcing the appropriate file for your shell, the appropriate PATH variables (and a few Gromacs specific ones) are updated so that when running `gmx` the binary from that distribution is used.

This `GMXRC.fish` file implements that for the Fish shell.

Instructions:

1. Copy file to the `$GROMACS_DIR/bin` directory, where `$GROMACS_DIR` is your installation directory. This directory is where the `gmx` binary and the other `GMXRC` files are.
2. Source the file: `source $GROMACS_DIR/bin/GMXRC.fish`
3. Optionally: Inspect $PATH and Gromacs variables

```auto
echo $PATH
echo $GMXBIN

```

Link: [GMXRC file for the Fish shell. Add to `$GROMACS/bin` directory and source to set path and variables. · GitHub](https://gist.github.com/pjohansson/7a86da349161595bd4c1fa77c11be38e)  
Contact person (name and email address): Petter Johansson (pjohansson at [univ-pau.fr](http://univ-pau.fr))

How the work has been tested/reviewed: Tested in Fish version 3.3.1. Like the standard `GMXRC` files, path variables are cleaned up if multiple `GMXRC.fish` files are sourced – only the most recently sourced file will be present in $PATH.
