chore(mise): update shell setup and mise config for latest mise

This commit is contained in:
Jim Myhrberg
2024-11-28 19:36:46 +00:00
parent 0c419db04e
commit fdc7fcafc6
3 changed files with 15 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ legacy_version_file = true
not_found_auto_install = false
[settings.status]
missing_tools = "never"
show_env = true
show_tools = false

View File

@@ -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

16
zshrc
View File

@@ -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)"