A plugin for Oh My Fish
Enables quick switching between Hasihcorp Vault profiles. If you have multiple vault endpint need to manage. Inspire by @mgoodness.
- setup vault profile in your
${HOME}/.vault/credentials
like this:
[foot]
vault_addr = https://foot.example.com
vault_token = '1a2b3c4d5e6f7g8h9i'
[bar]
vault_addr = https://bar.example.com
vault_token = '1a2b3c4d5e6f7g8h9i'
$ git clone git@github.com:terrych0u/plugin-vsp.git ~/.local/share/omf/pkg/
rm -rf ~/.local/share/omf/pkg/plugin-vsp
$ vsp <vault_profile>
Sets $VAULT_ADDR
and $VAULT_TOKEN
environment variables to
the corresponding values from ${HOME}/.vault/credentials
.
$ vgp
Echoes $VAULT_ADDR
and VAULT_TOKEN
.