Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .mux/init
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@ if [ -z "$_mux_mise_bin" ]; then
fi

echo "[mux:init] using mise at $_mux_mise_bin"

_mux_mise_config="$PWD/mise.toml"
if [ -f "$_mux_mise_config" ]; then
# Worktree workspaces live at unique paths, so mise treats each workspace copy
# as a newly untrusted config until it is explicitly trusted.
"$_mux_mise_bin" trust -y "$_mux_mise_config" >/dev/null 2>&1 || true
fi

"$_mux_mise_bin" install
"$_mux_mise_bin" run bootstrap

unset _mux_mise_bin
unset _mux_mise_config
8 changes: 8 additions & 0 deletions .mux/tool_env
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ elif [ -x "/usr/local/bin/mise" ]; then
fi

if [ -n "$_mux_mise_bin" ]; then
_mux_mise_config="$PWD/mise.toml"
if [ -f "$_mux_mise_config" ]; then
# New worktree paths start untrusted, and bash commands may run before the
# async init hook finishes trusting the copied mise.toml.
"$_mux_mise_bin" trust -y "$_mux_mise_config" >/dev/null 2>&1 || true
fi

eval "$("$_mux_mise_bin" activate bash --shims 2>/dev/null)" || true
fi

unset _mux_mise_bin
unset _mux_mise_config
Loading