@@ -157,8 +157,8 @@ python = ['3.10', '3.11']
157157[settings ]
158158# plugins can read the versions files used by other version managers (if enabled by the plugin)
159159# for example, .nvmrc in the case of node's nvm
160- legacy_version_file = true # enabled by default (unlike asdf)
161- legacy_version_file_disable_tools = [' python' ] # disable for specific tools
160+ idiomatic_version_file = true # enabled by default (unlike asdf)
161+ idiomatic_version_file_disable_tools = [' python' ] # disable for specific tools
162162
163163# configure `mise install` to always keep the downloaded archive
164164always_keep_download = false # deleted after install by default
@@ -240,38 +240,38 @@ Both `.mise.toml` and `.tool-versions` support "scopes" which modify the behavio
240240 be used to express something like "2 versions behind lts" such as ` sub-2:lts ` . Or 1 minor
241241 version behind the latest version: ` sub-0.1:latest ` .
242242
243- ## Legacy version files
243+ ## Idiomatic version files
244244
245- mise supports "legacy version files" just like asdf. They're language-specific files
245+ mise supports "idiomatic version files" just like asdf. They're language-specific files
246246like ` .node-version `
247247and ` .python-version ` . These are ideal for setting the runtime version of a project without forcing
248248other developers to use a specific tool like mise/asdf.
249249
250250They support aliases, which means you can have an ` .nvmrc ` file with ` lts/hydrogen ` and it will work
251- in mise and nvm. Here are some of the supported legacy version files:
251+ in mise and nvm. Here are some of the supported idiomatic version files:
252252
253- | Plugin | "Legacy" ( Idiomatic) Files |
253+ | Plugin | Idiomatic Files |
254254| --------- | -------------------------------------------------- |
255255| crystal | ` .crystal-version ` |
256256| elixir | ` .exenv-version ` |
257257| go | ` .go-version ` , ` go.mod ` |
258258| java | ` .java-version ` , ` .sdkmanrc ` |
259259| node | ` .nvmrc ` , ` .node-version ` |
260- | python | ` .python-version ` |
260+ | python | ` .python-version ` , ` .python-versions ` |
261261| ruby | ` .ruby-version ` , ` Gemfile ` |
262262| terraform | ` .terraform-version ` , ` .packer-version ` , ` main.tf ` |
263263| yarn | ` .yarnrc ` |
264264
265265In mise these are enabled by default. You can disable them
266- with ` mise settings legacy_version_file =false ` .
266+ with ` mise settings idiomatic_version_file =false ` .
267267There is a performance cost to having these when they're parsed as it's performed by the plugin in
268- ` bin/parse-version-file ` . However these are [ cached] ( /cache-behavior ) so it's not a huge deal.
268+ ` bin/parse-version-file ` . However, these are [ cached] ( /cache-behavior ) so it's not a huge deal.
269269You may not even notice.
270270
271271::: info
272- asdf calls these "legacy version files" so we do too . I think this is a bad name since it implies
272+ asdf called these "legacy version files". I think this was a bad name since it implies
273273that they shouldn't be used—which is definitely not the case IMO. I prefer the term "idiomatic"
274- version files since they're version files not specific to asdf/mise and can be used by other tools.
274+ version files since they are version files not specific to asdf/mise and can be used by other tools.
275275(` .nvmrc ` being a notable exception, which is tied to a specific tool.)
276276:::
277277
0 commit comments