astra shellenv
astra shellenv [--ignore-multiple-paths] [--no-update-notifier]
[--home=<$home>] [--rc=<$rc>]
Completions, configuration, and more
Eval-ing the output of this command will:
-
Add the binary to your PATH
-
Enable shell completions
-
Optionally set any other configuration environment variables.
Intended to be added to your shell profile (.zprofile, .bash_profile, .profile, etc.), but you can technically just eval it in any shell session to get completions and update your PATH for that session.
Options
--home-
Sets the
ASTRA_HOMEenv var. Seeastra config home path -hfor how this is resolved. --rc-
Sets the
ASTRARCenv var. Seeastra config path -hfor how this is resolved. --ignore-multiple-paths-
Ignore warnings about multiple astra home folders or astrarc files being present. Sets
ASTRA_IGNORE_MULTIPLE_PATHS=trueunder the hood. --no-update-notifier-
Disables background update checks notifications. Sets
ASTRA_NO_UPDATE_NOTIFIER=trueunder the hood.
Examples
# Put this in your shell profile (e.g. ``~/.zprofile``) to generate completions and set your PATH
$ eval "$(/path/to/astra shellenv)"
# Set a custom ``ASTRA_HOME`` path
$ eval "$(/path/to/astra shellenv --home /path/to/astra/home)"
# Set a custom ``ASTRARC`` path
$ eval "$(/path/to/astra shellenv --rc /path/to/astrarc)"
# Disable update notifications
$ eval "$(/path/to/astra shellenv --no-update-notifier)"
# Ignore warnings about multiple astra home folders or astrarc files
$ eval "$(/path/to/astra shellenv --ignore-multiple-paths)"