Skip to content
Nathan Sparks edited this page Jun 12, 2017 · 2 revisions

hdpm env

Print GlueX environment variables

Synopsis

Print GlueX environment variables.

Pass an environment variable as an argument to select it.

-w,--write flag: Write bash and tcsh environment-setup scripts to $GLUEX_TOP/.hdpm/env/NAME.[c]sh.

This command can also be used to set/unset GlueX env variables in your shell. See examples below.

hdpm env [VAR]

Examples

1. hdpm env
2. hdpm env -s bash
3. (a) eval `hdpm env`        (Set env for tcsh shell)
   (b) eval `hdpm env -u`     (Unset env for tcsh shell)
4. (a) eval "$(hdpm env)"     (Set env for bash shell)
   (b) eval "$(hdpm env -u)"  (Unset env for bash shell)

Options

  -s, --shell string   Print commands for bash or tcsh shell
  -u, --unset          Print unset commands for GlueX env variables
  -w, --write          Write env scripts to $GLUEX_TOP/.hdpm/env/

SEE ALSO

  • hdpm - A tool for managing GlueX offline software and dependencies
Clone this wiki locally