fbenv.toml
to your home directory:```toml [environment1] SOME_VAR = bla
[environment2] SOME_VAR = blubb ```
fbenv ls
to show which environments you havefbenv get environment1
to get something to source or eval:```bash export FBENV=environment1;
export SOME_VAR=blubb; ```
echo $SOME_VAR
should yield blubb
! Only TOML tables are currently supported !
```toml bla = blubb
[environment1] SOME_VAR = bla ```
will ignore the variable bla
!
Adding this to your zsh
config
bash
if [[ -x "$(command -v fbenv)" ]];
then
if [[ -x "$(command -v fzf)" ]];
then
eval $(fbenv print-zsh-setup -f 2>/dev/null);
else
eval $(fbenv print-zsh-setup 2>/dev/null);
fi;
fi;
will yield a command named switch-env
.