Skip to content

Commit

Permalink
Move settings back to config file
Browse files Browse the repository at this point in the history
It is possible again to configure all settings inside of the config
file. With this we don't need to specify environment variables so mise
finds the specific settings file (removed from global .envrc).
  • Loading branch information
Blackjacx committed Nov 29, 2024
1 parent 44ab252 commit dbc5480
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 32 deletions.
25 changes: 25 additions & 0 deletions bootstrap/config_dirs/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,28 @@ swiftformat = '0.53' # A code formatter for Swift
carthage = '0.39.1' # Dependency manager for Apple development
jq = '1' # Lightweight and flexible command-line JSON processor
fzf = '0.55.0' # A command-line fuzzy finder

[settings]
color = true # Use color in mise terminal output
all_compile = false # Do not use precompiled binaries for all languages.
always_keep_download = false # Should mise keep downloaded files after installation
always_keep_install = false # Should mise keep install files after installation even if the installation fails
disable_default_shorthands = false # Disable the default shorthands, see `MISE_DISABLE_DEFAULT_SHORTHANDS`
disable_tools = ["ruby","node", "swift", "go", "python"] # Disable specific tools, generally used to turn off core tools and the ones loaded by `~/.tool-versions`
not_found_auto_install = true # Set to false to disable the "command not found" handler to autoinstall missing tool versions.
paranoid = false # Enables extra-secure behavior. See https://mise.jdx.dev/paranoid
quiet = false # Suppress all output except errors.
trusted_config_paths = [] # Config files with these prefixes will be trusted by default
verbose = false # Shows more verbose output such as installation logs when installing tools.
asdf_compat = false # Only output .tool-versions files in mise local|global which will be usable by asdf. This disables mise functionality that would otherwise make these files incompatible with asdf such as non-pinned versions.
yes = true # This will automatically answer yes or no to prompts. This is useful for scripting.
jobs = 5 # Number of plugins or runtimes to install in parallel.
raw = false # Set to true to directly pipe plugins to stdin/stdout/stderr
experimental = false # Enable experimental features
# env_file = '.env' # Load env vars from a dotenv file, see `MISE_ENV_FILE`

# How long to wait before updating plugins automatically.
# This is updated whenever a new runtime is installed.
# (note: this isn't currently implemented but there are plans to add it: https://github.com/jdx/mise/issues/128)
plugin_autoupdate_last_check_duration = "7d" # Set to 0 to disable updates

32 changes: 0 additions & 32 deletions bootstrap/config_dirs/mise/settings.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,2 @@
# Plugins can read the versions files used by other version managers (if enabled by the plugin)
# For example, .nvmrc in the case of node's nvm
legacy_version_file = false # enabled by default (unlike asdf)
legacy_version_file_disable_tools = [] # disable for specific tools

color = true
all_compile = false # Do not use precompiled binaries for all languages.
always_keep_download = false # deleted after install by default
always_keep_install = false # deleted on failure by default
disable_default_shorthands = false # disable the default shorthands, see `MISE_DISABLE_DEFAULT_SHORTHANDS`
disable_tools = ['ruby','node'] # disable specific tools, generally used to turn off core tools
not_found_auto_install = true # Set to false to disable the "command not found" handler to autoinstall missing tool versions.
paranoid = false # Paranoid is an optional behavior that locks mise down more to make it harder for a bad actor to compromise your system.

# configure how frequently (in minutes) to fetch updated plugin repository changes
# this is updated whenever a new runtime is installed
# (note: this isn't currently implemented but there are plans to add it: https://github.com/jdx/mise/issues/128)
plugin_autoupdate_last_check_duration = "7d" # set to 0 to disable updates

quiet = false
# shorthands_file = null # path to the shorthands file, see `MISE_SHORTHANDS_FILE`
# task_output = null # see Task Runner for more information
trusted_config_paths = [] # config files with these prefixes will be trusted by default

verbose = false # set to true to see full installation output, see `MISE_VERBOSE`
asdf_compat = false
yes = true # set to true to automatically answer yes to all prompts
jobs = 5 # number of plugins or runtimes to install in parallel. The default is `4`.
raw = false # set to true to directly pipe plugins to stdin/stdout/stderr

experimental = true # enable experimental features

# env_file = '.env' # load env vars from a dotenv file, see `MISE_ENV_FILE`

0 comments on commit dbc5480

Please sign in to comment.