Is it possible to "embed" environment variables in global binaries (~/.pixi/bin) and environments?
#5823
|
I'm playing around with multiple versions of the same binary by separating them into different environments during For example, I have different versions of Neovim installed, and for specific environments I would like to set specific I've tried to see if setting |
Replies: 1 comment
|
Not via Exposed binaries already bake conda activation into mkdir -p ~/.pixi/envs/nvim12/etc/conda/env_vars.d
printf '%s\n' '{"NVIM_APPNAME":"nvim12"}' > ~/.pixi/envs/nvim12/etc/conda/env_vars.d/nvim.json
pixi global sync
|
Not via
pixi-global.toml. That file only acceptschannels,platform,dependencies,exposed, andshortcuts, which is whyactivation.envfailed.[activation.env]exists only on workspace manifests (pixi.toml).Exposed binaries already bake conda activation into
~/.pixi/bin/trampoline_configuration/nvim12.jsonunderenv. To addNVIM_APPNAMEand have sync pick it up:pixi global updateor a reinstall rebuilds the prefix and deletes that file. A wrapper on PATH is the option that survives those commands. First-classenvon[envs.*]wo…