mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
chore(mise): update shell setup and mise config for latest mise
This commit is contained in:
@@ -5,7 +5,6 @@ legacy_version_file = true
|
|||||||
not_found_auto_install = false
|
not_found_auto_install = false
|
||||||
|
|
||||||
[settings.status]
|
[settings.status]
|
||||||
missing_tools = "never"
|
|
||||||
show_env = true
|
show_env = true
|
||||||
show_tools = false
|
show_tools = false
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
.bundle
|
.bundle
|
||||||
.byebug_history
|
.byebug_history
|
||||||
.dir-locals.el
|
.dir-locals.el
|
||||||
.mise.*.local.toml
|
.mise.*local.toml
|
||||||
.mise.local.toml
|
.mise.local.toml
|
||||||
.projectile
|
.projectile
|
||||||
.stfolder
|
.stfolder
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
.zinitrc.zsh
|
.zinitrc.zsh
|
||||||
log/*.bz2
|
log/*.bz2
|
||||||
log/*.gz
|
log/*.gz
|
||||||
|
mise.*local.toml
|
||||||
routes.txt
|
routes.txt
|
||||||
test/dummy/log/*.bz2
|
test/dummy/log/*.bz2
|
||||||
test/dummy/log/*.gz
|
test/dummy/log/*.gz
|
||||||
|
|||||||
16
zshrc
16
zshrc
@@ -238,8 +238,12 @@ fi
|
|||||||
if command-exists mise; then
|
if command-exists mise; then
|
||||||
alias mi="mise"
|
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
|
setup-completions mise "$MISE_INSTALL_PATH" mise completions zsh
|
||||||
cached-eval "$MISE_INSTALL_PATH" mise activate zsh
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
@@ -252,12 +256,11 @@ if ! command-exists starship && [ -f "$MISE_INSTALL_PATH" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if command-exists starship; then
|
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
|
cached-eval "$(command-path starship)" starship init zsh --print-full-init
|
||||||
|
setup-completions starship "$(command-path starship)" starship completions zsh
|
||||||
else
|
else
|
||||||
echo "WARN: starship not found, skipping prompt setup" >&2
|
echo "WARN: starship not found, skipping prompt setup" >&2
|
||||||
echo " install with: mise install starship" >&2
|
echo " install with: mise install starship" >&2
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
@@ -318,3 +321,10 @@ if [ -f "$HOME/.zshrc.local" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
autoload -U +X bashcompinit && bashcompinit
|
autoload -U +X bashcompinit && bashcompinit
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# Prepare interactive environment
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
# Activate mise properly for interactive use not using shims.
|
||||||
|
eval "$("$MISE_INSTALL_PATH" activate zsh)"
|
||||||
|
|||||||
Reference in New Issue
Block a user