Add {MISE_CONFIG_DIR}/config.{MISE_ENV}.local.toml
to config lookup
#2773
Labels
enhancement
New feature or request
I have set
MISE_CONFIG_DIR
to~/projects/dotfiles/mise
and have aconfig.local.toml
file with global env vars that I want to make available to all my shells.However, I see that this file is not getting loaded, and it doesn't look like this file is included in the mise file lookup process, at least as far as I can tell by looking at the documentation on Profiles.
I host my
dotfiles
on a remote GitHub repository, and have amise/config.toml
file that I have committed with settings I want to share across machines, but I would like to also have amise/config.local.toml
file that I do not track that can hold all of my secrets & machine-specific configurations, and while it looks like this is supported if you haveconfig.local.toml
in a directory like~/.config/mise
, it doesn't look like you can if you're settingMISE_CONFIG_DIR
to some other directory.My
.zshrc
(withXDG_CONFIG_HOME
set to~/projects/dotfiles
):TLDR
We have a lookup for
{MISE_CONFIG_DIR}/config.{MISE_ENV}.toml
, I would likemise
to also lookup{MISE_CONFIG_DIR}/config.{MISE_ENV}.local.toml
The text was updated successfully, but these errors were encountered: