mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-18 14:06:00 +00:00
fix(mise): correct PATH precedence, error handling, and shell detection
- Append non-mise PATH entries so mise shims keep highest precedence - Remove legacy cargo bin from initial PATH bootstrap - Detect current shell for mise activate instead of hardcoding bash - Rename AWS_SESSION_TOKEN to AWS_SESSION_TOKEN_FILE (was a file path) - Add exit-on-failure checks to dfm mise install block - Fix reset_nvim to call mise instead of removed npm installer - Forward all args in dfm mise-cleanup - Auto-detect DOTFILES in cleanup script when not pre-exported - Report brew uninstall failures instead of masking with || true - Fix p10k segment name from MISE to ASDF - Replace npm with yarn in CLAUDE.md Bash whitelist
This commit is contained in:
@@ -168,17 +168,26 @@ section_install()
|
||||
msgr run "Installing tools via mise..."
|
||||
if ! command -v mise &> /dev/null; then
|
||||
msgr nested "Installing mise..."
|
||||
curl https://mise.run | sh
|
||||
if ! curl https://mise.run | sh; then
|
||||
msgr err "Failed to install mise"
|
||||
exit 1
|
||||
fi
|
||||
export PATH="${XDG_BIN_HOME:-$HOME/.local/bin}:$PATH"
|
||||
fi
|
||||
mise install --yes
|
||||
mise reshim
|
||||
if ! mise install --yes; then
|
||||
msgr err "mise install failed"
|
||||
exit 1
|
||||
fi
|
||||
if ! mise reshim; then
|
||||
msgr err "mise reshim failed"
|
||||
exit 1
|
||||
fi
|
||||
msgr yay "mise tools installed!"
|
||||
;;
|
||||
|
||||
mise-cleanup)
|
||||
msgr run "Cleaning up old version manager installations..."
|
||||
bash "$DOTFILES/scripts/cleanup-old-version-managers.sh" "${2:-}"
|
||||
bash "$DOTFILES/scripts/cleanup-old-version-managers.sh" "${@:2}"
|
||||
;;
|
||||
|
||||
apt-packages)
|
||||
@@ -539,7 +548,7 @@ section_dotfiles()
|
||||
msgr ok "Deleted old nvim files (share, state and cache + config)"
|
||||
ln -s "$DOTFILES/config/nvim" ~/.config/nvim
|
||||
msgr ok "Linked nvim and astronvim"
|
||||
x-have npm && $0 install npm
|
||||
x-have mise && $0 install mise
|
||||
msgr ok "Installed packages"
|
||||
msgr run_done "nvim reset!"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user