diff --git a/config/mise/config.toml b/config/mise/config.toml index 2734c16..0f8a64a 100644 --- a/config/mise/config.toml +++ b/config/mise/config.toml @@ -5,7 +5,6 @@ legacy_version_file = true not_found_auto_install = false [settings.status] -missing_tools = "never" show_env = true show_tools = false diff --git a/gitignore b/gitignore index d7231ea..a46de7d 100644 --- a/gitignore +++ b/gitignore @@ -5,7 +5,7 @@ .bundle .byebug_history .dir-locals.el -.mise.*.local.toml +.mise.*local.toml .mise.local.toml .projectile .stfolder @@ -15,6 +15,7 @@ .zinitrc.zsh log/*.bz2 log/*.gz +mise.*local.toml routes.txt test/dummy/log/*.bz2 test/dummy/log/*.gz diff --git a/zshrc b/zshrc index 51cf155..987a4b4 100644 --- a/zshrc +++ b/zshrc @@ -238,8 +238,12 @@ fi if command-exists mise; then alias mi="mise" + # Ensure shims directory is in PATH so that install tools are immediately + # available for use within shell initialization. We activate mise normally + # right at end which replaces the shims in PATH with a shell hook that updates + # PATH as needed. + path_prepend "$MISE_HOME/shims" setup-completions mise "$MISE_INSTALL_PATH" mise completions zsh - cached-eval "$MISE_INSTALL_PATH" mise activate zsh fi # ============================================================================== @@ -252,12 +256,11 @@ if ! command-exists starship && [ -f "$MISE_INSTALL_PATH" ]; then fi if command-exists starship; then - setup-completions starship "$(command-path starship)" starship completions zsh cached-eval "$(command-path starship)" starship init zsh --print-full-init + setup-completions starship "$(command-path starship)" starship completions zsh else echo "WARN: starship not found, skipping prompt setup" >&2 echo " install with: mise install starship" >&2 - fi # ============================================================================== @@ -318,3 +321,10 @@ if [ -f "$HOME/.zshrc.local" ]; then fi autoload -U +X bashcompinit && bashcompinit + +# ============================================================================== +# Prepare interactive environment +# ============================================================================== + +# Activate mise properly for interactive use not using shims. +eval "$("$MISE_INSTALL_PATH" activate zsh)"