This plugin will inject environment variables into your shell session from your Infisical (self-hosted or cloud) account every time when you enter a directory that contains a .infisical.json
file.
You will need to have an Infisical account and a project created and install the Infisical CLI in order to use this plugin
Clone this repository into your ~/.oh-my-zsh/custom/plugins
directory:
git clone git@github.com:imakecodes/zsh-infisical.git ~/.oh-my-zsh/custom/plugins/infisical
Then add infisical
to your plugins
array in your ~/.zshrc
file:
plugins=(... infisical)
The default values for Infisical environment
and API endpoint
are:
DEFAULT_ENV=dev
DEFAULT_URL=https://app.infisical.com/api
To override globaly these values, edit your ~/.zshrc
file and add the following lines:
ZSH_INFISICAL_DEFAULT_ENV=your_env
ZSH_INFISICAL_DEFAULT_URL=your_url
Bug reports and pull requests are welcome on GitHub at https://github.com/imakecodes/zsh-infisical/issues or open a Pull Request.