From c5de9f9a5e4eaaf779ff0ff1e733378f702d6ffb Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 18 Mar 2026 09:15:10 +0200 Subject: [PATCH] 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 --- CLAUDE.md | 3 ++- config/zsh/p10k.zsh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 142637f..32b87bf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -199,7 +199,8 @@ Instead use: ## REDIRECTED tools — use sandbox equivalents ### Bash (>20 lines output) -Bash is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `npm install`, `pip install`, and other short-output commands. +Bash is ONLY for: `git`, `mkdir`, `rm`, `mv`, `cd`, `ls`, `yarn install`, `pip install`, +and other short-output commands. For everything else, use: - `ctx_batch_execute(commands, queries)` — run multiple commands + search in ONE call - `ctx_execute(language: "shell", code: "...")` — run in sandbox, only stdout enters context diff --git a/config/zsh/p10k.zsh b/config/zsh/p10k.zsh index da0bfcb..d6669fb 100644 --- a/config/zsh/p10k.zsh +++ b/config/zsh/p10k.zsh @@ -121,8 +121,8 @@ # Don't show context unless root or in SSH. # typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_CONTENT_EXPANSION= - # aws, go and mise versions colors. - typeset -g POWERLEVEL9K_{AWS,GO,MISE}_FOREGROUND=$grey + # aws, go and asdf versions colors. + typeset -g POWERLEVEL9K_{AWS,GO,ASDF}_FOREGROUND=$grey # Show previous command duration only if it's >= 86400s = 24h. typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=86400