Skip to content

Commit f2b3115

Browse files
committed
feat(install): trust and install mise tools for workspace after overlay apply
1 parent 32dd97b commit f2b3115

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ if [ -n "${CODESPACES:-}" ] && [ -z "${DOTFILES_NO_OVERLAY:-}" ]; then
4141

4242
if (set -e; _dotfiles_fast_path); then
4343
printf 'Dotfiles applied from pre-built overlay.\n' >&2
44+
# Trust and install mise tools for the workspace project.
45+
for d in /workspaces/[!.]*/; do
46+
if [ -d "$d" ]; then
47+
eval "$(mise activate sh 2>/dev/null)" || true
48+
mise trust --all "$d" 2>/dev/null || true
49+
mise install --cd "$d" 2>/dev/null || true
50+
break
51+
fi
52+
done
4453
# Kill stale terminal sessions opened during provisioning so the user
4554
# gets a fresh shell with the newly applied config.
4655
pkill -HUP -u "$(whoami)" bash 2>/dev/null || true

0 commit comments

Comments
 (0)