#!/usr/bin/env bash

# omarchy:summary=Print the development environment backend, mise or asdf
# omarchy:hidden=true

# Based: upstream installs languages and coding agents through mise. A
# distribution that installs them through asdf says so in
# /etc/omarchy/dev-env-backend (Based renders it per edition). Without the
# file, or with anything but asdf on its first line, the backend is mise.
backend=
[[ -r /etc/omarchy/dev-env-backend ]] && read -r backend </etc/omarchy/dev-env-backend

if [[ $backend == asdf ]]; then
  echo asdf
else
  echo mise
fi
