Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

706 B
Raw Blame
#!/bin/bash
# mise generated shim

shim_dir=$(cd -- "$(dirname -- "$0")" && pwd -P)
shim_path="$shim_dir/${0##*/}"
if [ "${__MISE_SHIM_PATH:-}" = "$shim_path" ]; then
  echo "mise: recursive shim invocation detected for snow: $shim_path" >&2
  exit 1
fi

if [ -n "${WSL_DISTRO_NAME:-}" ] || [ -n "${WSL_INTEROP:-}" ] || [ -e /proc/sys/fs/binfmt_misc/WSLInterop ]; then
  new_path=
  # disable globbing so a PATH entry containing * ? [ is not expanded
  set -f
  IFS=:
  for p in $PATH; do
    [ "$p" = "$shim_dir" ] && continue
    new_path="${new_path:+$new_path:}$p"
  done
  unset IFS
  set +f
  export PATH="$new_path"
  exec snow "$@"
fi

export __MISE_SHIM_PATH="$shim_path"
exec mise x -- snow "$@"